From bfaab771c68b9a24d2e2a71cce008bde03091c15 Mon Sep 17 00:00:00 2001 From: Daniel Morell Date: Fri, 18 Aug 2023 16:27:36 -0500 Subject: [PATCH] Added KeyError to appengine import error handling --- rollbar/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollbar/__init__.py b/rollbar/__init__.py index 247f5fc6..1e3b7cb7 100644 --- a/rollbar/__init__.py +++ b/rollbar/__init__.py @@ -81,7 +81,7 @@ try: from google.appengine.api.urlfetch import fetch as AppEngineFetch -except ImportError: +except (ImportError, KeyError): AppEngineFetch = None try: