specified exceptions

pull/280/head
iaacornus 3 years ago
parent 0e1076549f
commit 376f30d709
No known key found for this signature in database
GPG Key ID: 281739AE7252598C

@ -56,7 +56,11 @@ def main(subreddit_=None, background=None, filename=None, thread_link_=None):
try:
float(os.getenv("OPACITY"))
except:
except (
ValueError,
FloatingPointError,
TypeError,
):
console.print(
f"[bold red]Please ensure that OPACITY is between 0 and 1 in .env file.[/bold red]"
)

Loading…
Cancel
Save