Catching only ValueError

Co-Authored-By: ionutfilip <ionut.philip@gmail.com>
master
hoellen 6 years ago committed by GitHub
parent 6dcc33e390
commit 680ad4b67a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -41,7 +41,7 @@ class IdnaEmail(db.TypeDecorator):
localpart, localpart,
idna.encode(domain_name).decode('ascii'), idna.encode(domain_name).decode('ascii'),
) )
except: except ValueError:
pass pass
def process_result_value(self, value, dialect): def process_result_value(self, value, dialect):

Loading…
Cancel
Save