fnp
/
librarian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e93c907
)
stupid bug
author
Jan Szejko
<janek37@gmail.com>
Tue, 27 Dec 2016 14:40:33 +0000
(15:40 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Tue, 27 Dec 2016 14:40:33 +0000
(15:40 +0100)
librarian/formats/pdf/__init__.py
patch
|
blob
|
history
diff --git
a/librarian/formats/pdf/__init__.py
b/librarian/formats/pdf/__init__.py
index
fd1fd5e
..
7d170b9
100644
(file)
--- a/
librarian/formats/pdf/__init__.py
+++ b/
librarian/formats/pdf/__init__.py
@@
-52,7
+52,7
@@
class PdfFormat(Format):
def add_file(self, ctx, filename, url=None, path=None, image=False):
from subprocess import call
def add_file(self, ctx, filename, url=None, path=None, image=False):
from subprocess import call
- if not url
or
path:
+ if not url
and not
path:
raise BuildError('No URL or path for image')
save_as = os.path.join(ctx.workdir, filename)
if path is not None:
raise BuildError('No URL or path for image')
save_as = os.path.join(ctx.workdir, filename)
if path is not None: