mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-10 08:07:48 +02:00
Run black on py
This commit is contained in:
@@ -11,13 +11,14 @@ def git_suffix(fname):
|
||||
"""
|
||||
try:
|
||||
gh = subprocess.check_output(
|
||||
['git', 'rev-parse', '--short', 'HEAD'],
|
||||
stderr=open(os.devnull, 'w')).strip()
|
||||
gh = "-git" + gh.decode() if gh else ''
|
||||
["git", "rev-parse", "--short", "HEAD"],
|
||||
stderr=open(os.devnull, "w"),
|
||||
).strip()
|
||||
gh = "-git" + gh.decode() if gh else ""
|
||||
except Exception:
|
||||
# trapping everything on purpose; git may not be installed or it
|
||||
# may not work properly
|
||||
gh = ''
|
||||
gh = ""
|
||||
|
||||
return gh
|
||||
|
||||
|
Reference in New Issue
Block a user