-
Notifications
You must be signed in to change notification settings - Fork 36
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
Using the requests library we can lose a lot of boilerplate code #9
Conversation
Actually, need a couple of try: except: |
Still some py3 problem. please wait. |
@@ -339,22 +225,23 @@ def main(): | |||
seen.add(arg) | |||
|
|||
try: | |||
opener = login_from_config(cfg) | |||
cfg = get_config() |
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.
remove this line
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.
Thanks!
Looks great apart from the three minor comments. As for adding an option to ignore cert errors/warnings, that would be nice but I can do that separately. |
else: | ||
print(exc) | ||
except requests.exceptions.RequestException as err: | ||
print("Login connection failed:", err) |
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 not single quotes
I think I've taken care of the PR comments. |
Using the requests library we can lose a lot of boilerplate code
No description provided.