Skip to content

Commit

Permalink
style: Fix UP024 - Replace aliased errors with OSError
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed Oct 17, 2024
1 parent 42358fa commit 4636a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/init/grass.py
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,7 @@ def say_hello():

revision = linerev.split(" ")[1]
sys.stderr.write(" (" + revision + ")")
except (FileNotFoundError, PermissionError, IndexError, IOError):
except (OSError, FileNotFoundError, PermissionError, IndexError):
pass


Expand Down

0 comments on commit 4636a1b

Please sign in to comment.