From c9d7931ccb4e1db775905686f9e3286c9c8e402a Mon Sep 17 00:00:00 2001 From: Martin Green Date: Sun, 19 Jun 2022 01:35:32 +0100 Subject: [PATCH] test --- core/views/expo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/views/expo.py b/core/views/expo.py index 07a8c5c..6076ded 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -131,7 +131,7 @@ def expowebpage(request, expowebpath, path): try: with open(os.path.normpath(expowebpath / path).encode(sysdefaultencoding), "r", encoding='utf-8') as o: html = o.read() - except: + except Cave.DoesNotExist: # exception raised on debian with python 3.9.2 but not on WSL Ubuntu with python 3.9.5 # because debian was assuming default text encoding was 'ascii'. Now specified explicitly so should be OK try: