Revert "Error handling for idna encoding"

This reverts commit 10034526a1.
master
hoellen 5 years ago
parent 10034526a1
commit bed2c6ea09

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

@ -1 +0,0 @@
Error handling in idna encoding
Loading…
Cancel
Save