mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
xf86-video-nvidia: add try and except for import requests
This commit is contained in:
parent
e7215dd963
commit
2ac3541f60
@ -1,7 +1,12 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import os, sys
|
||||
import requests
|
||||
|
||||
try:
|
||||
import requests
|
||||
except:
|
||||
print('requests module not installed.\n\nOn Ubuntu, use "sudo apt install python3-requests"')
|
||||
sys.exit(1)
|
||||
|
||||
try:
|
||||
from lxml import html
|
||||
|
Loading…
x
Reference in New Issue
Block a user