Skip to content

Commit

Permalink
fix: version (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickAlphaC authored Sep 15, 2024
1 parent 941e454 commit efb8a1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion moccasin/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import importlib
from importlib import metadata
from pathlib import Path
import tomllib
import argparse
Expand Down Expand Up @@ -504,7 +505,7 @@ def add_network_args_to_parser(parser: argparse.ArgumentParser):


def get_version() -> str:
version = importlib.metadata.version("moccasin")
version = metadata.version("moccasin")
# Attempt to parse from `pyproject.toml` if not found
if not version:
with open(
Expand Down

0 comments on commit efb8a1e

Please sign in to comment.