mirror of
https://github.com/JonathanHerrewijnen/calibre-web.git
synced 2024-11-10 21:24:15 +00:00
import try catch
This commit is contained in:
parent
326d6e7b9d
commit
477b202c38
@ -2,7 +2,10 @@ import concurrent.futures
|
|||||||
import requests
|
import requests
|
||||||
from bs4 import BeautifulSoup as BS # requirement
|
from bs4 import BeautifulSoup as BS # requirement
|
||||||
import lxml #requirement for better speed
|
import lxml #requirement for better speed
|
||||||
import cchardet #optional for better speed
|
try:
|
||||||
|
import cchardet #optional for better speed
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
from cps.services.Metadata import Metadata
|
from cps.services.Metadata import Metadata
|
||||||
#from time import time
|
#from time import time
|
||||||
from operator import itemgetter
|
from operator import itemgetter
|
||||||
|
Loading…
Reference in New Issue
Block a user