mirror of
https://github.com/evilhero/mylar
synced 2024-12-22 07:42:24 +00:00
FIX: throw error if PIL or pillow are not installed
This commit is contained in:
parent
420a3e0570
commit
ebc86eb8c1
1 changed files with 6 additions and 1 deletions
|
@ -7,7 +7,12 @@ from lib.rarfile import rarfile
|
|||
|
||||
import mylar
|
||||
|
||||
try:
|
||||
from PIL import Image
|
||||
except ImportError:
|
||||
logger.debug("WebReader Requested, but PIL or pillow libraries must be installed. Please execute 'pip install pillow', then restart Mylar.")
|
||||
return serve_template(templatename="index.html", title="Home", comics=comics, alphaindex=mylar.CONFIG.ALPHAINDEX)
|
||||
|
||||
from mylar import logger, db, importer, mb, search, filechecker, helpers, updater, parseit, weeklypull, librarysync, moveit, Failed, readinglist, config
|
||||
from mylar.webserve import serve_template
|
||||
|
||||
|
|
Loading…
Reference in a new issue