Skip to content

Commit a49bd98

Browse files
committed
...
1 parent 90f4110 commit a49bd98

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

publish.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@
2626
publish_dir = os.path.abspath(os.path.join('..', 'kovidgoyal.github.io', 'kitty'))
2727
with open('kitty/constants.py') as f:
2828
raw = f.read()
29-
nv = re.search(r'^version\s+=\s+Version\((\d+), (\d+), (\d+)\)', raw, flags=re.MULTILINE)
29+
nv = re.search(r'^version: Version\s+=\s+Version\((\d+), (\d+), (\d+)\)', raw, flags=re.MULTILINE)
3030
if nv is not None:
3131
version = '%s.%s.%s' % (nv.group(1), nv.group(2), nv.group(3))
32-
appname = re.search(r"^appname: str\s+=\s+'([^']+)'", raw, flags=re.MULTILINE).group(1) # type: ignore
32+
ap = re.search(r"^appname: str\s+=\s+'([^']+)'", raw, flags=re.MULTILINE)
33+
if ap is not None:
34+
appname = ap.group(1)
3335

3436
ALL_ACTIONS = 'man html build tag sdist upload website'.split()
3537

0 commit comments

Comments
 (0)