From ee62d591ad3aeefc57d4644cb444bfd02b8552fe Mon Sep 17 00:00:00 2001 From: Mark Pashmfouroush Date: Tue, 24 Sep 2024 11:46:20 +0200 Subject: [PATCH] skip execution if url is empty Signed-off-by: Mark Pashmfouroush --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index d4d889a..544ecdf 100644 --- a/main.py +++ b/main.py @@ -44,6 +44,9 @@ args = parser.parse_args() def main(): + if args.url == "": + return + s3_keys = None if args.s3_access is not None and args.s3_secret is not None: s3_keys = (args.s3_access, args.s3_secret)