mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +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
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import os, sys
|
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:
|
try:
|
||||||
from lxml import html
|
from lxml import html
|
||||||
|
Loading…
x
Reference in New Issue
Block a user