[util] fix typo and missing exit

This commit is contained in:
Stefan Riesenberger 2022-02-04 13:01:47 +01:00
parent 58feec6ec7
commit 902f457dd8
1 changed files with 2 additions and 1 deletions

View File

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