Skip to content

Commit

Permalink
fix: attempt to split version, and if it fails, then fallback to norm…
Browse files Browse the repository at this point in the history
…al versioning (only happens with poetry)
  • Loading branch information
Marshall-Hallenbeck committed Apr 1, 2024
1 parent 87d37f8 commit c03a00e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nxc/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit c03a00e

Please sign in to comment.