diff --git a/main.py b/main.py index 9270177..f3ba98f 100644 --- a/main.py +++ b/main.py @@ -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]" )