Permalink
Browse files

Ensuring that docvert-cli only sends in list of urls, not list of Non…

…e(s)
  • Loading branch information...
1 parent d679f4d commit 1856d90d5fa36e6595d8f30039e020b9f85e0b33 @holloway committed Aug 30, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 docvert-cli.py
View
@@ -51,8 +51,11 @@ def process_commands(filesdata, pipeline_id, pipeline_type, auto_pipeline_id, af
for filedata in filesdata:
files['document-%i.doc' % file_index] = filedata
file_index += 1
+ urls = list()
+ if url != None:
+ urls.append(url)
try:
- response = core.docvert.process_conversion(files, [url], pipeline_id, pipeline_type, auto_pipeline_id)
+ response = core.docvert.process_conversion(files, urls, pipeline_id, pipeline_type, auto_pipeline_id)
except core.docvert_exception.debug_exception, exception:
print >> sys.stderr, "%s: %s" % (exception, exception.data)
#TODO: when after_conversion="auto"

0 comments on commit 1856d90

Please sign in to comment.