Skip to content

Commit

Permalink
Improved error handling for invalid configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
zehnm committed Feb 29, 2024
1 parent 4a52710 commit 70d050c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intg-appletv/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ def load(self) -> bool:
return True
except OSError:
_LOG.error("Cannot open the config file")
except ValueError:
_LOG.error("Empty or invalid config file")
except (ValueError, TypeError) as err:
_LOG.error("Empty or invalid config file: %s", err)

return False

Expand Down

0 comments on commit 70d050c

Please sign in to comment.