File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/sentry_plugins/amazon_sqs Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -181,8 +181,10 @@ def sqs_send_message(message):
181
181
182
182
sqs_send_message (message )
183
183
except ClientError as e :
184
- if str (e ).startswith ("An error occurred (InvalidClientTokenId)" ) or str (e ).startswith (
185
- "An error occurred (AccessDenied)"
184
+ if (
185
+ str (e ).startswith ("An error occurred (InvalidClientTokenId)" )
186
+ or str (e ).startswith ("An error occurred (AccessDenied)" )
187
+ or str (e ).startswith ("An error occurred (InvalidAccessKeyId)" )
186
188
):
187
189
# If there's an issue with the user's token then we can't do
188
190
# anything to recover. Just continue.
@@ -193,5 +195,8 @@ def sqs_send_message(message):
193
195
# If there's an issue with the user's s3 bucket then we can't do
194
196
# anything to recover. Just continue.
195
197
return False
198
+ elif "AWS.SimpleQueueService.NonExistentQueue" in str (e ):
199
+ # If the specified queue doesn't exist, we can't do anything to recover
200
+ return False
196
201
raise
197
202
return True
You can’t perform that action at this time.
0 commit comments