File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,17 @@ def derive_code_mappings(
9090 logger .warning ("The org has uninstalled the Sentry App." , extra = extra )
9191 return
9292
93+ if msg == "This installation has been suspended" :
94+ logger .warning ("The org has suspended the Sentry App." , extra = extra )
95+ return
96+
97+ if msg .startswith ("Although you appear to have the correct authorization credentials" ):
98+ # Although you appear to have the correct authorization credentials, the
99+ # <github_org_here> organization has an IP allow list enabled, and
100+ # <ip_address_here> is not permitted to access this resource.
101+ logger .warning ("The org has suspended the Sentry App. See code comment." , extra = extra )
102+ return
103+
93104 # Logging the exception and returning is better than re-raising the error
94105 # Otherwise, API errors would not group them since the HTTPError in the stack
95106 # has unique URLs, thus, separating the errors
You can’t perform that action at this time.
0 commit comments