Commit d1909792 by Bach Dániel

handle exceptions in get_driver_version()

parent 3230b2c6
......@@ -621,12 +621,16 @@ def get_ram_size():
@celery.task
def get_driver_version():
from git import Repo
try:
repo = Repo(path=os.getcwd())
lc = repo.log()[0]
return {'branch': repo.active_branch,
'commit': lc.id_abbrev,
'commit_text': lc.summary,
'is_dirty': repo.is_dirty}
except:
logging.exception("Unhandled exception: ")
return None
@celery.task
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment