forked from Riesi/frog_emojis_old
[util] improve resolution error handling
This commit is contained in:
parent
484bd933eb
commit
58feec6ec7
|
@ -101,14 +101,10 @@ def main():
|
||||||
# this will error out on invalid argument configurations
|
# this will error out on invalid argument configurations
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
sizes = None
|
|
||||||
for res in args.resolution or []:
|
for res in args.resolution or []:
|
||||||
print(f"asd{res}")
|
|
||||||
if res > 0 and res < 2147483647:
|
if res > 0 and res < 2147483647:
|
||||||
if not sizes:
|
print("Resolutions have to be in the range of 0 < R > 2147483647!")
|
||||||
sizes = []
|
sizes = args.resolution
|
||||||
sizes.append(res)
|
|
||||||
|
|
||||||
files = []
|
files = []
|
||||||
|
|
||||||
# if "git" parameter was specified, regenerate since last tag + create git commit
|
# if "git" parameter was specified, regenerate since last tag + create git commit
|
||||||
|
|
Loading…
Reference in New Issue