diff --git a/nxc/cli.py b/nxc/cli.py index 6fa037b2c..f39e670e3 100755 --- a/nxc/cli.py +++ b/nxc/cli.py @@ -14,7 +14,11 @@ def gen_cli_args(): - VERSION, COMMIT = importlib.metadata.version("netexec").split("+") + try: + VERSION, COMMIT = importlib.metadata.version("netexec").split("+") + except ValueError: + VERSION = importlib.metadata.version("netexec") + COMMIT = "" CODENAME = "nxc4u"