Skip to content

Commit d6ed5ed

Browse files
Correct crash on config file missing
1 parent 37adf28 commit d6ed5ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nutcase/app/app/utils/configuration.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,8 @@ def Load_Config( app ):
367367
#=====================================================================
368368
# Record the mod time of the config file
369369
#=====================================================================
370-
app.config.update( CONFIG_MOD_TIME = os.path.getmtime( Config_Filename ) )
370+
if Config_Filename and os.path.isfile( Config_Filename ):
371+
app.config.update( CONFIG_MOD_TIME = os.path.getmtime( Config_Filename ) )
371372

372373
#=================================================================================
373374
# Do validity checking in the loaded configuration

0 commit comments

Comments
 (0)