log the OSError before returning 500

This commit is contained in:
Brian S. Stephan 2021-02-21 19:37:59 -06:00
parent 39d78af524
commit 0bfea79a8f
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ def display_page(path):
mtime = datetime.datetime.fromtimestamp(os.path.getmtime(entry_file.name), get_localzone())
entry = entry_file.read()
except OSError:
logger.error("resolved path '%s' could not be opened!", resolved_path)
logger.exception("resolved path '%s' could not be opened!", resolved_path)
abort(500)
else:
md = init_md()