Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 3ba3fe3

Browse files
committed
exit with error if error in api call
1 parent 7bcec22 commit 3ba3fe3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cli4/cli4.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ def do_it(args):
463463
except Exception as e:
464464
if len(commands) > 1:
465465
continue
466+
sys.exit(e)
466467

467468
def cli4(args):
468469
"""Cloudflare API via command line"""

0 commit comments

Comments
 (0)