From 4108420cef0d0fd11db7d3751e32ebdaad765c6a Mon Sep 17 00:00:00 2001 From: Stefan Riesenberger Date: Fri, 4 Feb 2022 13:01:47 +0100 Subject: [PATCH] [util] fix typo and missing exit --- gen_png.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gen_png.py b/gen_png.py index 08e9a4a..3b6b3f5 100755 --- a/gen_png.py +++ b/gen_png.py @@ -102,8 +102,9 @@ def main(): args = parser.parse_args() for res in args.resolution or []: - if res > 0 and res < 2147483647: + if res <= 0 or res >= 2147483647: print("Resolutions have to be in the range of 0 < R > 2147483647!") + exit(1) sizes = args.resolution files = []