From bed2c6ea099f9ace7b439ca54015ffb5b0936913 Mon Sep 17 00:00:00 2001 From: hoellen Date: Wed, 14 Aug 2019 01:02:07 +0200 Subject: [PATCH] Revert "Error handling for idna encoding" This reverts commit 10034526a11de85dcd631983ae8c6761d5fb2112. --- core/admin/mailu/models.py | 5 +---- towncrier/newsfragments/1087.bugfix | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 towncrier/newsfragments/1087.bugfix 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