-
Notifications
You must be signed in to change notification settings - Fork 74
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
fix for mirror window consumer #1264
Conversation
@@ -842,7 +841,7 @@ class Cortex(s_cell.Cell): | |||
await layr.setOffset(layr.iden, items[-1][0]) | |||
|
|||
except asyncio.CancelledError: # pragma: no cover | |||
raise | |||
return |
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.
Since this is the main function for the coroutine, catching and handling CancelledError is ok here
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.
Doesn't matter either way since schedCoro will swallow the cancellederror
Codecov Report
@@ Coverage Diff @@
## master #1264 +/- ##
==========================================
+ Coverage 94.24% 94.27% +0.03%
==========================================
Files 126 126
Lines 16620 16620
==========================================
+ Hits 15664 15669 +5
+ Misses 956 951 -5
Continue to review full report at Codecov.
|
@@ -842,7 +841,7 @@ class Cortex(s_cell.Cell): | |||
await layr.setOffset(layr.iden, items[-1][0]) | |||
|
|||
except asyncio.CancelledError: # pragma: no cover | |||
raise | |||
return |
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.
Doesn't matter either way since schedCoro will swallow the cancellederror
No description provided.