diff --git a/zesje/images.py b/zesje/images.py
index da3aaa84fc76ba58989155152865bae06e35797b..df61de909986dd955a6e0a5790cd4a91f2679452 100644
--- a/zesje/images.py
+++ b/zesje/images.py
@@ -1,7 +1,6 @@
 """Utilities for dealing with images"""
 
 import numpy as np
-import warnings
 
 from operator import sub, add
 
@@ -48,7 +47,6 @@ def fix_corner_markers(corner_keypoints, shape):
     ----------
     corner_keypoints: list of corner marker locations as tuples
     dpi: the dpi of the image in which the corner markers are from
-
     image_format: either A4 or US letter
 
     Returns
diff --git a/zesje/scans.py b/zesje/scans.py
index 33cd53bd2efaf31624986cecb6221f35b28f9095..6ba14b9a1ec5b646a608ad4e332625b34c5014de 100644
--- a/zesje/scans.py
+++ b/zesje/scans.py
@@ -88,8 +88,8 @@ def _process_pdf(scan_id, app_config):
                 if not success:
                     print(description)
                     failures.append(page)
-            except Exception:
-                report_error(f'Error processing page {traceback.format_exc()}')
+            except Exception as e:
+                report_error(f'Error processing page {e}.\nTraceback:\n{traceback.format_exc()}')
                 raise
     except Exception as e:
         report_error(f"Failed to read pdf: {e}")