Skip to content
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

PR: Try to eval string setting values after decoding in python2.7 #4159

Merged
merged 1 commit into from
Feb 17, 2017

Conversation

rlaverde
Copy link
Member

Fixes #4124

@rlaverde rlaverde added this to the v4.0beta1 milestone Feb 17, 2017
except (UnicodeEncodeError, UnicodeDecodeError):

# Some str config values expect to be eval after decoding
new_value = ast.literal_eval(value)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should nest a new try/except instead of adding extra exceptions to the already existing outer try/except

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 😄

@rlaverde rlaverde force-pushed the fix/setting-language-py27 branch from 378a2dc to 5b26fe8 Compare February 17, 2017 17:26
@goanpeca
Copy link
Member

Looks good

@goanpeca goanpeca merged commit 5cfffaf into spyder-ide:master Feb 17, 2017
@rlaverde rlaverde deleted the fix/setting-language-py27 branch February 17, 2017 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants