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

Modulegraph: Warn on syntax error and unicode error. #2430

Closed
wants to merge 2 commits into from
Closed

Modulegraph: Warn on syntax error and unicode error. #2430

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 2, 2017

No description provided.

@@ -2129,6 +2129,7 @@ def _load_module(self, fqname, fp, pathname, info):
except SyntaxError:
co = None
cls = InvalidSourceModule
self.msg(2, "load_module: InvalidSourceModule", pathname)
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, I've just seen that we are using level 2 and "InvalidSourceModule" here while below we are using level 1 and "SyntaxError". Is this intended?

Copy link
Author

Choose a reason for hiding this comment

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

No. The UnicodeDecode error should be level two.

@htgoebel htgoebel closed this in 274e545 Feb 17, 2017
@htgoebel
Copy link
Member

Thanks for this pull-request.

@htgoebel htgoebel added this to the PyInstaller 3.3 milestone Feb 17, 2017
@ghost ghost deleted the mgraphlogging branch February 17, 2017 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants