Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
97adb36f
Commit
97adb36f
authored
Mar 31, 2018
by
OzzieIsaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix Upload Message
Improved errorhandling at import imagemagick
parent
af5a897d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
book_formats.py
cps/book_formats.py
+1
-1
layout.html
cps/templates/layout.html
+2
-2
No files found.
cps/book_formats.py
View file @
97adb36f
...
@@ -15,7 +15,7 @@ try:
...
@@ -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
:
...
...
cps/templates/layout.html
View file @
97adb36f
...
@@ -100,8 +100,8 @@
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment