allow frappy to run in readonly repo

do not write release version in this case
This commit is contained in:
2026-06-09 14:21:21 +02:00
parent 340587e5ba
commit 10f08caf21
+5 -3
View File
@@ -55,9 +55,11 @@ def read_release_version():
def write_release_version(version):
with RELEASE_VERSION_FILE.open('w', encoding='utf-8') as f:
f.write(f'{version}\n')
try:
with RELEASE_VERSION_FILE.open('w', encoding='utf-8') as f:
f.write(f'{version}\n')
except OSError:
pass # no write permission?
def get_version(abbrev=4):
# determine the version from git and from RELEASE-VERSION