diff options
author | Martin Green <martin.speleo@gmail.com> | 2022-06-19 01:35:32 +0100 |
---|---|---|
committer | Martin Green <martin.speleo@gmail.com> | 2022-06-19 01:35:32 +0100 |
commit | c9d7931ccb4e1db775905686f9e3286c9c8e402a (patch) | |
tree | 8cbd91e22b3ce68f8470c77289ce6885976da016 /core/views/expo.py | |
parent | aad6b70736e66cc15576993431585f80f948fc75 (diff) | |
download | troggle-c9d7931ccb4e1db775905686f9e3286c9c8e402a.tar.gz troggle-c9d7931ccb4e1db775905686f9e3286c9c8e402a.tar.bz2 troggle-c9d7931ccb4e1db775905686f9e3286c9c8e402a.zip |
test
Diffstat (limited to 'core/views/expo.py')
-rw-r--r-- | core/views/expo.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |