Skip to content

Commit

Permalink
fix: Only catch ModuleNotFoundError
Browse files Browse the repository at this point in the history
instead of all exceptions
  • Loading branch information
gteufelberger committed Dec 27, 2024
1 parent 5dca66f commit 398d451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vo-scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# Check whether `requests` is installed
try:
import requests
except:
except ModuleNotFoundError:
print(
"(\033[91mERR\033[0m) Required package `requests` is missing, try installing with `pip3 install requests`"
)
Expand Down

0 comments on commit 398d451

Please sign in to comment.