From 1adda46965f5abf5d2be8b2a5113647e3fcef11f Mon Sep 17 00:00:00 2001 From: kamangir Date: Sat, 15 Jun 2024 18:39:04 -0700 Subject: [PATCH] blueness argparse ending refactor - kamangir/bolt#746 --- hubblescope/__init__.py | 2 +- hubblescope/__main__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hubblescope/__init__.py b/hubblescope/__init__.py index 52ecdb4..c0312e0 100644 --- a/hubblescope/__init__.py +++ b/hubblescope/__init__.py @@ -4,4 +4,4 @@ DESCRIPTION = f"{ICON} tools to access and process Hubble Space Telescope imagery and other datasets on AWS Open Data Registry." -VERSION = "4.21.1" +VERSION = "4.22.1" diff --git a/hubblescope/__main__.py b/hubblescope/__main__.py index f3f15a8..ac001fa 100644 --- a/hubblescope/__main__.py +++ b/hubblescope/__main__.py @@ -3,7 +3,7 @@ from hubblescope.ingest import ingest from hubblescope import NAME, VERSION, DESCRIPTION from hubblescope.logger import logger -from blueness.argparse.generic import ending +from blueness.argparse.generic import sys_exit parser = argparse.ArgumentParser(NAME, description=f"{NAME}-{VERSION}") parser.add_argument( @@ -67,4 +67,4 @@ else: success = None -ending(logger, NAME, args.task, success) +sys_exit(logger, NAME, args.task, success)