diff --git a/nutcase/app/app/utils/configuration.py b/nutcase/app/app/utils/configuration.py index 67f232b..81343d3 100644 --- a/nutcase/app/app/utils/configuration.py +++ b/nutcase/app/app/utils/configuration.py @@ -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