1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-11-07 18:54:03 +00:00

Bugfixes after testrun

This commit is contained in:
Ozzie Isaacs
2022-04-28 20:57:09 +02:00
parent aaa749933d
commit a968ddaef2
4 changed files with 2112 additions and 1033 deletions

View File

@@ -22,13 +22,6 @@ from . import create_app
from .jinjia import jinjia
from .remotelogin import remotelogin
try:
from kobo import kobo, get_kobo_activated
from kobo_auth import kobo_auth
kobo_available = get_kobo_activated()
except (ImportError, AttributeError): # Catch also error for not installed flask-WTF (missing csrf decorator)
kobo_available = False
try:
from oauth_bb import oauth
oauth_available = True
@@ -50,6 +43,12 @@ def main():
from .shelf import shelf
from .tasks_status import tasks
from .error_handler import init_errorhandler
try:
from .kobo import kobo, get_kobo_activated
from .kobo_auth import kobo_auth
kobo_available = get_kobo_activated()
except (ImportError, AttributeError): # Catch also error for not installed flask-WTF (missing csrf decorator)
kobo_available = False
from . import web_server
init_errorhandler()