mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 13:23:24 -07:00
Catch config.ParseError
This commit is contained in:
parent
a675202537
commit
9095fc0c7a
2 changed files with 19 additions and 6 deletions
|
@ -160,7 +160,11 @@ def initialize(config_file):
|
|||
global UMASK
|
||||
global _UPDATE
|
||||
|
||||
CONFIG = config.Config(config_file)
|
||||
try:
|
||||
CONFIG = config.Config(config_file)
|
||||
except:
|
||||
raise SystemExit("Unable to initialize Tautulli due to a corrupted config file. Exiting...")
|
||||
|
||||
CONFIG_FILE = config_file
|
||||
|
||||
assert CONFIG is not None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue