-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inet model bugfixes (SYN-4552, SYN-4561) #2982
Conversation
Codecov ReportBase: 97.20% // Head: 97.09% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #2982 +/- ##
==========================================
- Coverage 97.20% 97.09% -0.12%
==========================================
Files 217 217
Lines 43003 42992 -11
==========================================
- Hits 41801 41742 -59
- Misses 1202 1250 +48
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
synapse/models/inet.py
Outdated
@@ -198,7 +198,11 @@ def _normPyStr(self, valu): | |||
|
|||
try: | |||
user, fqdn = valu.split('@', 1) | |||
except ValueError: | |||
mesg = f'Cannot split the email user and fqdn for "{valu}"' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe something about the missing @ sign? Something like Email address expected in <user>@<fqdn> format: {valu}
or something?
inet:dns:soa
properties are now writable.inet:email
norm now catches a python ValueError during splitting and raises a BadTypeValu directly when that happens.