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
Misc fixes #343
Misc fixes #343
Conversation
This was resulting in unreachable code for 'HTTP error' in desc. Signed-off-by: Tony Asleson <tasleson@redhat.com>
Signed-off-by: Tony Asleson <tasleson@redhat.com>
From looking at the code, I believe the intention was to retun 'None' if we get a parse error for a line in the export data. Otherwise, we have unreachable code as the 'return None' would never execute. Signed-off-by: Tony Asleson <tasleson@redhat.com>
@@ -175,7 +175,7 @@ def _parse_export(parts=None): | |||
anonuid, anongid, optionstring) | |||
return result | |||
except: | |||
raise | |||
pass |
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.
@jumitche Does this look correct to you?
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.
Yes, that looks okay.
@@ -175,7 +175,7 @@ def _parse_export(parts=None): | |||
anonuid, anongid, optionstring) | |||
return result | |||
except: | |||
raise | |||
pass |
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.
Yes, that looks okay.
@jumitche Thank you. |
Correct some typos and unreachable code.