diff options
author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2023-03-27 18:45:20 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2023-03-27 18:45:20 +0100 |
commit | c52740b9906697ebdfb2e27274b4fab225b593ef (patch) | |
tree | 177e1e96b5d2192763e72b748c929fca32952b3e | |
parent | 56b6bcf44f4b7123a82621670c784fd404c97150 (diff) | |
download | paste-c52740b9906697ebdfb2e27274b4fab225b593ef.tar.gz paste-c52740b9906697ebdfb2e27274b4fab225b593ef.tar.xz paste-c52740b9906697ebdfb2e27274b4fab225b593ef.zip |
pass exc_info explicitly
-rw-r--r-- | paste/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/__init__.py b/paste/__init__.py index 482c534..2ec00a4 100644 --- a/paste/__init__.py +++ b/paste/__init__.py @@ -92,7 +92,7 @@ def catch_exceptions(app: App, environ: Env, start_response: StartResponse) -> R except Exception as e: print("".join(traceback.format_exception(type(e), e, e.__traceback__))) return simple_response( - start_response, "500 Internal Server Error", sys.exc_info() + start_response, "500 Internal Server Error", exc_info=sys.exc_info() ) |