Skip to content

Commit 8c34d03

Browse files
committed
replace bare except and except BaseException with except Exception
1 parent 4b791e1 commit 8c34d03

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
@@ -220,7 +220,7 @@ def show_connection_successful_message(self):
220220
# may or may not be displayed.
221221
try:
222222
self.query_one("#setup_ssh_cancel_button").remove()
223-
except BaseException:
223+
except Exception:
224224
pass
225225

226226
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)