From 82a58b918b21f32e98dfbeccc224a3aff362b5e3 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 25 Jan 2017 10:44:56 +0100 Subject: [PATCH] Fixing lib/webhooks/deploy.py --- lib/webhooks/deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/webhooks/deploy.py b/lib/webhooks/deploy.py index 66e680c..f1cdd7a 100644 --- a/lib/webhooks/deploy.py +++ b/lib/webhooks/deploy.py @@ -139,7 +139,7 @@ class WebhookDeployApp(object): if 'REQUEST_METHOD' in os.environ: # we are in a CGI environment - if os.path.is_dir(self.log_directory) and os.access(self.log_directory, os.W_OK): + if os.path.isdir(self.log_directory) and os.access(self.log_directory, os.W_OK): lh_file = logging.FileHandler( self.logfile, mode='a', encoding='utf-8', delay=True) if self.verbose: -- 2.39.5