diff options
author | Oliver Poignant <oliver@poignant.se> | 2016-04-25 22:06:05 +0200 |
---|---|---|
committer | Oliver Poignant <oliver@poignant.se> | 2016-04-25 22:06:05 +0200 |
commit | 8fbe564f94cb54218b32b119a6d41ed241293608 (patch) | |
tree | c64606092741a903093382e8af9e71616daae5d4 /gitautodeploy/gitautodeploy.py | |
parent | 75c4947714fcf4b02f2d676ba3bd6027197a942f (diff) | |
download | Git-Auto-Deploy-8fbe564f94cb54218b32b119a6d41ed241293608.zip Git-Auto-Deploy-8fbe564f94cb54218b32b119a6d41ed241293608.tar.gz Git-Auto-Deploy-8fbe564f94cb54218b32b119a6d41ed241293608.tar.bz2 |
Fixed bug that appeared when no logging options was set
Diffstat (limited to 'gitautodeploy/gitautodeploy.py')
-rw-r--r-- | gitautodeploy/gitautodeploy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitautodeploy/gitautodeploy.py b/gitautodeploy/gitautodeploy.py index a48c195..9a50e3b 100644 --- a/gitautodeploy/gitautodeploy.py +++ b/gitautodeploy/gitautodeploy.py @@ -502,8 +502,8 @@ class GitAutoDeploy(object): # Initialize config using config file data self.init_config(config_data) - # Translate any ~ in the path into /home/<user> - if 'logfilepath' in self._config: + if 'logfilepath' in self._config and self._config['logfilepath']: + # Translate any ~ in the path into /home/<user> log_file_path = os.path.expanduser(self._config['logfilepath']) fileHandler = logging.FileHandler(log_file_path) fileHandler.setFormatter(logFormatter) |