fix TypeError with PMM_WIDTH

This commit is contained in:
meisnate12 2021-06-02 00:29:30 -04:00
parent 341b95ac78
commit f18b3ed604

View file

@ -59,7 +59,7 @@ for time_to_run in times_to_run:
util.separating_character = os.environ.get("PMM_DIVIDER")[0] if os.environ.get("PMM_DIVIDER") else args.divider[0]
screen_width = os.environ.get("PMM_WIDTH") if os.environ.get("PMM_WIDTH") else args.width
screen_width = int(os.environ.get("PMM_WIDTH")) if os.environ.get("PMM_WIDTH") else args.width
if 90 <= screen_width <= 300:
util.screen_width = screen_width
else: