From 5d285d12f7384023aa4506d91d819c99da83fa00 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 23 Sep 2021 00:48:56 +0200 Subject: [PATCH] remove debug code --- InvenTree/plugins/integration/integration.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/InvenTree/plugins/integration/integration.py b/InvenTree/plugins/integration/integration.py index 8e5175b0a6..a5cfb2f15c 100644 --- a/InvenTree/plugins/integration/integration.py +++ b/InvenTree/plugins/integration/integration.py @@ -151,9 +151,8 @@ def get_git_log(path): path = path.replace(os.path.dirname(settings.BASE_DIR), '')[1:] command = ['git', 'log', '-n', '1', "--pretty=format:'%H%n%aN%n%aE%n%ad%n%f'", '--follow', '--', path] try: - output = str(subprocess.check_output(command, cwd=os.path.dirname(settings.BASE_DIR), stderr=subprocess.STDOUT), 'utf-8').split('\n') - except subprocess.CalledProcessError as _e: - print(_e) + output = str(subprocess.check_output(command, cwd=os.path.dirname(settings.BASE_DIR)), 'utf-8').split('\n') + except subprocess.CalledProcessError: output = 5 * [''] return {'hash': output[0], 'author': output[1], 'mail': output[2], 'date': output[3], 'message': output[4]}