Skip to content

Commit

Permalink
resave main() returns nothing to indicate no error
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Aug 28, 2024
1 parent 4160338 commit 448016e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ome2024_ngff_challenge/resave.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,9 @@ def write(
config.zr_write_text(filename, text)


def main(ns: argparse.Namespace) -> int:
def main(ns: argparse.Namespace) -> None:
"""
If no images are converted, raises
SystemExit. Otherwise, return the number of images.
If no images are converted, raises SystemExit.
"""

converted: int = 0
Expand Down Expand Up @@ -550,7 +549,6 @@ def main(ns: argparse.Namespace) -> int:

if converted == 0:
raise SystemExit(1)
return converted


def cli(subparsers: argparse._SubParsersAction):
Expand Down

0 comments on commit 448016e

Please sign in to comment.