Skip to content

Commit ecd5878

Browse files
authored
Specific Exception
1 parent dde0a68 commit ecd5878

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

keyauth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
from Crypto.Util.Padding import pad, unpad
2121
from requests_toolbelt.adapters.fingerprint import FingerprintAdapter
2222
import requests
23-
except Exception as f:
24-
print("Exception when importing modules: " + str(f))
23+
except ModuleNotFoundError:
24+
print("Exception when importing modules")
2525
print("installing necessary modules....")
2626
os.system("pip install pycryptodome")
2727
os.system("pip install requests_toolbelt")

0 commit comments

Comments
 (0)