-
-
Notifications
You must be signed in to change notification settings - Fork 15
Add validate method for polar file #24 #25
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
Conversation
weatherrouting/polar.py
Outdated
|
|
||
|
|
||
| class PolarError(Exception): | ||
| def __init__(self, message): |
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 is not necessery; Exception already receives a list of arguments which are stored in Exception().args; you can put a "pass" in the body of the class
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.
class PolarError(Exception):
pass
is enough
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.
I am sorry, I missed it in my last commit.
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.
Still wrong:
class PolarError(Exception):
pass
weatherrouting/polar.py
Outdated
|
|
||
|
|
||
| class PolarError(Exception): | ||
| def __init__(self, message): |
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.
class PolarError(Exception):
pass
is enough
dakk
left a comment
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.
PolarError needs a fix
No description provided.