Skip to content

Commit

Permalink
Correct crash on config file missing
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurMitchell42 committed Feb 19, 2024
1 parent 37adf28 commit d6ed5ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nutcase/app/app/utils/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@ def Load_Config( app ):
#=====================================================================
# Record the mod time of the config file
#=====================================================================
app.config.update( CONFIG_MOD_TIME = os.path.getmtime( Config_Filename ) )
if Config_Filename and os.path.isfile( Config_Filename ):
app.config.update( CONFIG_MOD_TIME = os.path.getmtime( Config_Filename ) )

#=================================================================================
# Do validity checking in the loaded configuration
Expand Down

0 comments on commit d6ed5ed

Please sign in to comment.