Commit 4fc5d692 authored by Izalia Mae's avatar Izalia Mae
Browse files

exclude git hash if unavailable

parent 4847c2bb
......@@ -12,9 +12,10 @@ from .processors import run_processor
try:
commit_label = subprocess.check_output(["git", "rev-parse", "HEAD"]).strip().decode('ascii')
version = f'{__version__} {commit_label}'
except:
commit_label = '???'
version = __version__
async def home(request):
......@@ -169,7 +170,7 @@ async def nodeinfo_2_0(request):
},
'software': {
'name': 'activityrelay',
'version': f'{__version__} {commit_label}'
'version': version
},
'usage': {
'localPosts': 0,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment