-
Notifications
You must be signed in to change notification settings - Fork 445
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
Convert PyQt5 to local import in tribler common #5852
Conversation
5f15a69
to
c43bc76
Compare
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.
Maybe add try..except
here on imports?
@ichorid thought about using |
So, there is gonna be a crash on exception if local import will not work? |
Yes, it should. Note that in the enclosing function call, we're trying to trying to ask user consent to send the exception/crash report to sentry. If there is no PyQt5, we cannot (should not) send error report silently without user consent so in my opinion it is best to just crash there if that happens. tribler/src/tribler-common/tribler_common/sentry_reporter/sentry_reporter.py Lines 196 to 227 in c43bc76
|
OK. The Core would gonna crash anyway, so why not? |
c43bc76
to
cdb1e70
Compare
Some observation based on the current state of the code and error reporting
It was expected that import error would mask the actual error but not really (strange). |
Tribler common is required by the core where it is best not to include PyQt dependency.
cdb1e70
to
a27341c
Compare
Kudos, SonarCloud Quality Gate passed!
|
Tribler common is required by the core where it is best not to include PyQt dependency. I had an issue finding & resolving all required dependencies of PyQt5 while running in headless mode.