1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00

Revert "Error handling for idna encoding"

This reverts commit 10034526a1.
This commit is contained in:
hoellen 2019-08-14 01:02:07 +02:00
parent 10034526a1
commit bed2c6ea09
2 changed files with 1 additions and 5 deletions

View File

@ -27,10 +27,7 @@ class IdnaDomain(db.TypeDecorator):
impl = db.String(80) impl = db.String(80)
def process_bind_param(self, value, dialect): def process_bind_param(self, value, dialect):
try: return idna.encode(value).decode("ascii").lower()
return idna.encode(value).decode("ascii").lower()
except ValueError:
pass
def process_result_value(self, value, dialect): def process_result_value(self, value, dialect):
return idna.decode(value) return idna.decode(value)

View File

@ -1 +0,0 @@
Error handling in idna encoding