Skip to content

Commit

Permalink
Update generate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bossOfCode authored Aug 24, 2024
1 parent 587038a commit fbc6144
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ def print_in_os(argument):
if VERSION in versions or namespace in namespaces:
OUTPUT = UUIDTYP()
else:
if not namespace in namespaces:
raise ValueError(f"ERROR: namespace cannot be {namespace}; must be either DNS, URL, OID, or X500.")
if not namespace in namespaces and namespace > "":
raise ValueError(f"ERROR: namespace cannot be '{namespace}'; must be either DNS, URL, OID, or X500.")
else:
if not VERSION in versions:
if not VERSION in versions and VERSION > "":
raise ValueError(f"ERROR: VERSION {VERSION} does not exist")

OUTPUTSTR = str(OUTPUT)
Expand Down

0 comments on commit fbc6144

Please sign in to comment.