mirror of
https://github.com/Pennyw0rth/NetExec
synced 2026-06-06 16:34:30 +00:00
fix: attempt to split version, and if it fails, then fallback to normal versioning (only happens with poetry)
This commit is contained in:
committed by
Marshall Hallenbeck
parent
2562b60344
commit
ecf5772e86
+5
-1
@@ -14,7 +14,11 @@ import importlib.metadata
|
||||
|
||||
|
||||
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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user