diff --git a/src/packages/buskill/__init__.py b/src/packages/buskill/__init__.py index 830472b21..639d6d069 100644 --- a/src/packages/buskill/__init__.py +++ b/src/packages/buskill/__init__.py @@ -227,7 +227,7 @@ def __init__(self): # BusKill class was always initialised after finding the log file path Therefore in the new setup we are initialising it before the log file path is found # This will prevent it from out of index error - self.LOG_FILE_PATH = logger.root.handlers[0].baseFilename if logger.root.handlers else None + self.LOG_FILE_PATH = getattr( logger.root.handlers[0], 'baseFilename', None ) if logger.root.handlers else None # Default value as False, because if no one updates the config.ini file then reverting back to old file path self.PERSISTENT_LOG = False