aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fietsboek/scripts/fietsctl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fietsboek/scripts/fietsctl.py b/fietsboek/scripts/fietsctl.py
index efe22c2..75c615a 100644
--- a/fietsboek/scripts/fietsctl.py
+++ b/fietsboek/scripts/fietsctl.py
@@ -138,7 +138,7 @@ def cmd_passwd(env, args):
def cmd_version():
"""Show the installed fietsboek version."""
- name = __name__.split(".")[0]
+ name = __name__.split(".", 1)[0]
print(f"{name} {__VERSION__}")
@@ -255,7 +255,7 @@ def main(argv=None):
argv = sys.argv
args, parser = parse_args(argv)
- if args.func == cmd_version:
+ if args.func == cmd_version: # pylint: disable=comparison-with-callable
cmd_version()
sys.exit(EXIT_OKAY)