We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7944c95 commit 6213a0dCopy full SHA for 6213a0d
news.d/bugfix/1803.core.md
@@ -0,0 +1 @@
1
+Fix a corner case in `plover -s (script)`.
plover/scripts/main.py
@@ -115,8 +115,11 @@ def main():
115
code = entrypoint.load()()
116
except SystemExit as e:
117
code = e.code
118
- if code is None:
119
- code = 0
+ if code is None:
+ code = 0
120
+ elif not isinstance(code, int): # sys.exit() also takes a string
121
+ log.error(code)
122
+ code = 1
123
else:
124
print("available script(s):")
125
dist = None
0 commit comments