-
-
Notifications
You must be signed in to change notification settings - Fork 70
ISSUE-159: possible fix for information hiding #177
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
Conversation
Ah I see the case now. |
throw if empty path to reveal more debug info
Is this PR ready for review/testing? |
Provided you think it makes logical sense, I’ll move it out of draft
…On Wed, Oct 20, 2021 at 8:54 AM Chris Nuernberger ***@***.***> wrote:
Is this PR ready for review/testing?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#177 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACPJX4644ONW76D76MZL6S3UH23YLANCNFSM5F3VACNQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Oh definitely it makes logical sense. It is hard to get the metadata generation to work correctly and not hide errors as often times simply reading python attributes causes errors but we should not hide errors due to importing modules. This is a great PR as that has bitten me and I am sure many other people. |
Great. I’ll move it out of draft shortly
…On Wed, Oct 20, 2021 at 9:22 AM Chris Nuernberger ***@***.***> wrote:
Oh definitely it makes logical sense. It is hard to get the metadata
generation to work correctly and not hide errors as often times simply
reading python attributes causes errors but we should not hide errors due
to importing modules. This is a great PR as that has bitten me and I am
sure many other people.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#177 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACPJX4YST5IN5ZUFBHWIZILUH27A7ANCNFSM5F3VACNQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
So this will expose error information if the module the user tries to load fails at import but not of some nested module does, is that correct? |
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.
Looks good - it would be nice if any import always generated a full stack trace I guess but we can't do that.
I narrowly checked to make sure that it covered the complaint in #159 only. It would be possible to extract the StackTrace, they can be converted to first class objects https://docs.python.org/3/library/traceback.html#traceback.extract_tb. There would need to be some magic done to convert the pointer. |
Closes: #159
@cnuernber I'm not sure about the background on that try/catch, so please double check this for me. Removing it exposes the error message @behrica is seeking.