From b7115dafbe0aec2ccf3eb4ae065cd01d5d29ce88 Mon Sep 17 00:00:00 2001 From: Mike Bennett Date: Thu, 2 Nov 2023 19:32:35 +0000 Subject: [PATCH] Add code to log errors in v2 manifest generation --- iiify/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iiify/app.py b/iiify/app.py index 8049f9e..8f8a041 100755 --- a/iiify/app.py +++ b/iiify/app.py @@ -206,7 +206,9 @@ def manifest2(identifier): page = int(page) try: return ldjsonify(create_manifest(identifier, domain=domain, page=page)) - except: + except Exception as excpt: + print("Exception occurred in manifest2:") + print(excpt) abort(404)