summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fedora_business_cards/export.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/fedora_business_cards/export.py b/fedora_business_cards/export.py
index 5e4c23e..655ccc6 100644
--- a/fedora_business_cards/export.py
+++ b/fedora_business_cards/export.py
@@ -45,12 +45,14 @@ def svg_to_pdf_png(xmlstring, filename, format='png', dpi=300):
command = ['inkscape', '-C -z -d', str(dpi), '-e', filename, '/dev/stdin']
if format == 'png':
sp = subprocess.Popen(' '.join(command), shell=True,
- stdin=subprocess.PIPE, stdout=subprocess.PIPE,)
+ stdin=subprocess.PIPE, stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE)
sp.communicate(stdin)
elif format == 'pdf':
command[3] = '-A'
sp = subprocess.Popen(' '.join(command), shell=True,
- stdin=subprocess.PIPE, stdout=subprocess.PIPE,)
+ stdin=subprocess.PIPE, stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE)
sp.communicate(stdin)
else:
raise Exception("Invalid file format requested")