Skip to content

Commit 0139997

Browse files
committedJan 20, 2024
Fallback
1 parent 0a79d87 commit 0139997

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

Diff for: ‎setup.py

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ def getversioncfg():
5959
g = gitinfo()
6060
except OSError:
6161
pass
62+
if len(g['version']) == 0:
63+
g['version'] = FALLBACK_VERSION
64+
6265
# finally, check and update the active version file
6366
cp = RawConfigParser()
6467
cp.read(versioncfgfile)

0 commit comments

Comments
 (0)
Please sign in to comment.