Skip to content

Commit 65c0960

Browse files
authored
replace bare except and except BaseException with except Exception (#716)
1 parent c8ae00b commit 65c0960

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

datashuttle/tui/screens/setup_ssh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def show_connection_successful_message(self):
221221
# may or may not be displayed.
222222
try:
223223
self.query_one("#setup_ssh_cancel_button").remove()
224-
except BaseException:
224+
except Exception:
225225
pass
226226

227227
message = "Connection was set up successfully."

datashuttle/utils/validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ def datetime_are_iso_format(
627627
format_to_check = utils.get_values_from_bids_formatted_name(
628628
[name], key, return_as_int=False
629629
)[0]
630-
except:
630+
except Exception:
631631
return []
632632

633633
strfmt = formats[key]

0 commit comments

Comments
 (0)