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 = []