mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
xf86-video-nvidia: add try and except for import requests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user