diff --git a/core/admin/mailu/models.py b/core/admin/mailu/models.py index 8176e461..95dc16a6 100644 --- a/core/admin/mailu/models.py +++ b/core/admin/mailu/models.py @@ -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) diff --git a/towncrier/newsfragments/1087.bugfix b/towncrier/newsfragments/1087.bugfix deleted file mode 100644 index 7d0ef69b..00000000 --- a/towncrier/newsfragments/1087.bugfix +++ /dev/null @@ -1 +0,0 @@ -Error handling in idna encoding