Skip to content

Commit

Permalink
Fix 'E722 do not use bare except' warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Nov 29, 2022
1 parent fb5fa22 commit 4ac4381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/malcolm_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def ReplaceBindMountLocation(line, location, linePrefix):
def same_file_or_dir(path1, path2):
try:
return os.path.samefile(path1, path2)
except:
except Exception:
return False


Expand Down

0 comments on commit 4ac4381

Please sign in to comment.