From 13e3da8d2691c1f7633b3a0a2010ecc8f2781370 Mon Sep 17 00:00:00 2001 From: Philip Sargent <philip.sargent@klebos.com> Date: Tue, 16 Aug 2022 20:57:34 +0300 Subject: [PATCH] bugfix --- core/views/uploads.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/views/uploads.py b/core/views/uploads.py index a5ec7b7..ee2b8d9 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -272,6 +272,8 @@ def scanupload(request, path=None): else: if socket.gethostname() != "expo": comment = f"on dev machine '{socket.gethostname()}' " + else: + comment = "" dr_commit = subprocess.run([git, "commit", "-m", f'JSON update for wallet {wallet} {comment}'], cwd=destfolder, capture_output=True, text=True) # This produces return code = 1 if it commits OK