-
-
Notifications
You must be signed in to change notification settings - Fork 61
Fixes issue #97 to have a clue in the logs when there is a syntax problem and raises Internal Server Error #98
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1506,11 +1506,15 @@ def parse_quoted_separated(args, separator=',', name_value=True, seplimit=0): | |
seplimit=seplimit) | ||
for item in l: | ||
if isinstance(item, tuple): | ||
key, value = item | ||
if key is None: | ||
key = u'' | ||
keywords[key] = value | ||
positional = trailing | ||
try: | ||
key, value = item | ||
if key is None: | ||
key = u'' | ||
keywords[key] = value | ||
positional = trailing | ||
except ValueError: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if you are trying to catch this for line 1510 only, the |
||
logging.error('Poblem %s' item) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo |
||
raise | ||
else: | ||
positional.append(item) | ||
|
||
|
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.
Hmm, is it only ValueError or do we also want to catch other exceptions here? Could also use
Exception
.