Skip to content

Commit

Permalink
Close #650: Do not collect OSError
Browse files Browse the repository at this point in the history
  • Loading branch information
theCapypara committed Oct 27, 2023
1 parent 50820bd commit 6f6c8fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions skytemple/core/error_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ def should_be_reported(exc_info: Optional[ExceptionInfo]):
exc = exc_info[1]
else:
exc = exc_info
# Don't collect OSErrors, these are almost always user-specific errors, not application errors.
if isinstance(exc, OSError):
return False

return not hasattr(exc, USER_ERROR_MARK)

Expand Down

0 comments on commit 6f6c8fa

Please sign in to comment.