Fix for #2299 (scholarly requires Internet connection at startup)

This commit is contained in:
Ozzie Isaacs
2022-01-31 18:09:23 +01:00
parent 42f8209a4a
commit 23e47ba4e6
3 changed files with 13 additions and 9 deletions
+5 -1
View File
@@ -58,10 +58,14 @@ try:
except ImportError:
greenlet_Version = None
try:
from fake_useragent.errors import FakeUserAgentError
except (ImportError):
FakeUserAgentError = BaseException
try:
from scholarly import scholarly
scholarly_version = _(u'installed')
except ImportError:
except (ImportError, FakeUserAgentError):
scholarly_version = _(u'not installed')
from . import services