-
Notifications
You must be signed in to change notification settings - Fork 3
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
Raise NotConnectedError in UpdateHandler.check_connection #71
Conversation
… instead of AttributeError when something nasty has happened to the session object.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #71 +/- ##
==========================================
- Coverage 70.35% 70.25% -0.10%
==========================================
Files 13 13
Lines 1464 1466 +2
==========================================
Hits 1030 1030
- Misses 434 436 +2 ☔ View full report in Codecov by Sentry. |
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.
I am not sure it is a sufficient fix for first part of #68. It addresses the traceback specifically yes, but I see several more places in UpdateHandler code where same error might occur (The list is not exhaustive!):
connect()
in UpdateHandler checks EventManager's session before calling the now fixedcheck_connection
update()
andremove()
in UpdateHandler call EventManager (including manager's methods that don't call_verify_session
) yet never callcheck_connection
- more?
Furthermore, while first part in #68 was exposed when calling UpdateHandler
, it concerns the session
from EventManager
. Shouldn't we address the problem in EventManager
?
Fair. Instead of always returning the session object,
Not applicable.
Not in UpdateHandler.
SessionAdapter actually. See new commit. |
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.
Some breaking changes, can no longer establish any connection to zino
614f019
to
0a1e7e8
Compare
Last commit removed. |
… instead of AttributeError when something nasty has happened to the session object.
For first part of #68