1
0

contrib: import 'requests' in try-except

This commit is contained in:
SomberNight
2018-12-13 23:25:52 +01:00
parent 78f5afff74
commit 8b775fd24a
5 changed files with 13 additions and 5 deletions

View File

@@ -1,7 +1,10 @@
#!/usr/bin/env python3
import sys
import requests
try:
import requests
except ImportError as e:
sys.exit(f"Error: {str(e)}. Try 'sudo python3 -m pip install <module-name>'")
def check_restriction(p, r):