Skip to content

Commit

Permalink
blueness argparse ending refactor - kamangir/bolt#746
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Jun 16, 2024
1 parent 796535a commit 14c2cca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ferfereh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

DESCRIPTION = f"{ICON} 3d-printed graffiti."

VERSION = "1.141.1"
VERSION = "1.142.1"
6 changes: 3 additions & 3 deletions ferfereh/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import argparse
from ferfereh import NAME, VERSION, DESCRIPTION
from ferfereh.logger import logger
from blueness.argparse.generic import ending


parser = argparse.ArgumentParser(NAME, description=f"{NAME}-{VERSION}")
Expand Down Expand Up @@ -35,7 +36,6 @@
print(f"{NAME}-{VERSION}")
success = True
else:
logger.error(f"-{NAME}: {args.task}: command not found.")
success = None

if not success:
logger.error(f"-{NAME}: {args.task}: failed.")
ending(logger, NAME, args.task, success)

0 comments on commit 14c2cca

Please sign in to comment.