-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add parsers for Equinix maintenance notifications via email #102
Conversation
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.
Nice job @scetron
Please, take care of linting
Looks like there are still some |
# for non english equinix notifications | ||
# english section is usually at the bottom | ||
# this skips the non english line at the top | ||
if not self._isascii(raw_time): | ||
continue |
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.
This feels pretty fragile to me but we can go with it for now and fix later if it proves to be an issue.
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.
Agreed. Unfortunately seemed to be the best way to detect the non-english characters which don't encode to ascii. If they stop including English, this would break, but than we'd have a larger problem of localization.
No description provided.