Skip to content
Snippets Groups Projects
Commit 96eaa2a8 authored by Karim Ahmed's avatar Karim Ahmed
Browse files

log exception in pushing

parent 7148177a
No related branches found
No related tags found
1 merge request!185Feat/git push flag
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment