From 21dd500c05c91c4927b2a4166690da65b1c98f97 Mon Sep 17 00:00:00 2001 From: Dennis Camera Date: Wed, 11 Nov 2020 14:44:44 +0100 Subject: [PATCH] Make pycodestyle pipeline happy --- cdist/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cdist/__init__.py b/cdist/__init__.py index 1c60ae0f..44366cd0 100644 --- a/cdist/__init__.py +++ b/cdist/__init__.py @@ -33,14 +33,15 @@ try: import cdist.version VERSION = cdist.version.VERSION except ModuleNotFoundError: - cdist_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) + cdist_dir = os.path.abspath( + os.path.join(os.path.dirname(__file__), os.pardir)) if os.path.isdir(os.path.join(cdist_dir, '.git')): try: VERSION = subprocess.check_output( ['git', 'describe', '--always'], cwd=cdist_dir, universal_newlines=True) - except: + except Exception: pass BANNER = """