aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-10-29 10:43:47 +0000
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-10-29 10:43:47 +0000
commitaf4c245c95448948837c2442ba1c944d7569a16b (patch)
tree50d6591bba97c90e9e35d15452e8943052178835
parentAdd NeurIPS provider (fixes #12) (diff)
parentCorrect message in PMLR provider exception (diff)
downloadpaper2remarkable-af4c245c95448948837c2442ba1c944d7569a16b.tar.gz
paper2remarkable-af4c245c95448948837c2442ba1c944d7569a16b.zip
Merge branch 'master' into feature/provider_neurips
-rw-r--r--paper2remarkable/pdf_ops.py4
-rw-r--r--paper2remarkable/providers/pmlr.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/paper2remarkable/pdf_ops.py b/paper2remarkable/pdf_ops.py
index 8636017..9c45db2 100644
--- a/paper2remarkable/pdf_ops.py
+++ b/paper2remarkable/pdf_ops.py
@@ -90,7 +90,9 @@ def shrink_pdf(filepath, gs_path="gs"):
"-dQUIET",
"-sOutputFile=%s" % output_file,
filepath,
- ]
+ ],
+ stdout=subprocess.DEVNULL,
+ stderr=subprocess.DEVNULL
)
if not status == 0:
logger.warning("Failed to shrink the pdf file")
diff --git a/paper2remarkable/providers/pmlr.py b/paper2remarkable/providers/pmlr.py
index 82b8b4d..6981c3b 100644
--- a/paper2remarkable/providers/pmlr.py
+++ b/paper2remarkable/providers/pmlr.py
@@ -56,7 +56,7 @@ class PMLR(Provider):
abs_url = "/".join(parts[:-1]) + ".html"
pdf_url = url
else:
- exception("Couldn't figure out OpenReview urls.")
+ exception("Couldn't figure out PLMR urls.")
return abs_url, pdf_url
def validate(src):