From 96eaa2a84c6b5f0d33f4d4003d64a90c6b336b97 Mon Sep 17 00:00:00 2001
From: Karim Ahmed <karim.ahmed@xfel.eu>
Date: Fri, 18 Oct 2019 10:24:46 +0200
Subject: [PATCH] log exception in pushing

---
 reportservice/report_service.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/reportservice/report_service.py b/reportservice/report_service.py
index 42475b4ba..a4d242844 100644
--- a/reportservice/report_service.py
+++ b/reportservice/report_service.py
@@ -132,9 +132,11 @@ async def push_figures(repo_master, addf):
         try:
             repo.index.add(addf)
             adding = False
-        except:
+        except Exception as e:
+            logging.error(str(e))
             sleep(1)
 
+
     repo.index.commit("Add {} new figures".format(len(addf)))
     #TODO: create an async function for pushing new figures
     # to avoid blocking the report service.
-- 
GitLab