mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-26 10:00:37 +00:00
Bugfix Upload Message
Improved errorhandling at import imagemagick
This commit is contained in:
parent
af5a897d1d
commit
97adb36f1b
@ -15,7 +15,7 @@ try:
|
|||||||
from wand.image import Image
|
from wand.image import Image
|
||||||
from wand import version as ImageVersion
|
from wand import version as ImageVersion
|
||||||
use_generic_pdf_cover = False
|
use_generic_pdf_cover = False
|
||||||
except ImportError as e:
|
except (ImportError, RuntimeError) as e:
|
||||||
logger.warning('cannot import Image, generating pdf covers for pdf uploads will not work: %s', e)
|
logger.warning('cannot import Image, generating pdf covers for pdf uploads will not work: %s', e)
|
||||||
use_generic_pdf_cover = True
|
use_generic_pdf_cover = True
|
||||||
try:
|
try:
|
||||||
|
@ -100,8 +100,8 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
<div id="loader" hidden="true">
|
<div id="loader" hidden="true">
|
||||||
<center>
|
<center>
|
||||||
<h3>_('Uploading...')</h3>
|
<h3>{{_('Uploading...')}}</h3>
|
||||||
<span>_('please don't refresh the page')</span>.
|
<span>{{_('please don't refresh the page')}}</span>.
|
||||||
<br />
|
<br />
|
||||||
<img src="{{ url_for('static', filename='img/loader.gif') }}">
|
<img src="{{ url_for('static', filename='img/loader.gif') }}">
|
||||||
</center>
|
</center>
|
||||||
|
Loading…
Reference in New Issue
Block a user