-
Notifications
You must be signed in to change notification settings - Fork 94
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 xtrigger sequential
arg validation & improve docs
#6138
Conversation
(LGTM) |
1f38e52
to
d37c060
Compare
d37c060
to
94bdb32
Compare
cylc/flow/dbstatecheck.py
Outdated
@@ -84,8 +84,16 @@ def __init__(self, rund, workflow, db_path=None): | |||
self.db_point_fmt = self._get_db_point_format_compat() | |||
self.c7_back_compat_mode = True | |||
except sqlite3.OperationalError: | |||
self.conn.close() |
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.
Consider using with suppress(Exception)
on this close if raising the original source of the OperationalError is likely to make more sense as an error.
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.
(merge if you don't think this is relevant)
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.
Looking good.
If you don't close DB connections when you're done with them, I will scream
94bdb32
to
0393a03
Compare
(MacOS test cancellations are macos-11 runner brownouts) |
Merging with Oliver's review suggestion force-pushed |
Built on/needs:
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.?.?.x
branch.