Skip to content

Commit ed8eb8e

Browse files
Update rest_session.py
1 parent 091a323 commit ed8eb8e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

meraki/rest_session.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,15 @@ def handle_4xx_errors(self, metadata, operation, reason, response, retries, stat
241241
except ValueError:
242242
message = response.content[:100]
243243
message_is_dict = False
244-
# Check for specific concurrency errors
245-
network_delete_concurrency_error_text = 'delete or combine networks'
246-
action_batch_concurrency_error_text = 'executing batches'
247244

248245
# Check specifically for concurrency errors
246+
network_delete_concurrency_error_text = 'concurrent'
247+
action_batch_concurrency_error_text = 'executing batches'
248+
249249
if message_is_dict and 'errors' in message.keys():
250+
errors = message['errors']
251+
if self._logger:
252+
self._logger.warning(f'{tag}, {operation} - {status} {reason} {errors}')
250253
network_deletion_errors = [error for error in message['errors'] if network_delete_concurrency_error_text in
251254
error]
252255
action_batch_errors = [error for error in message['errors'] if action_batch_concurrency_error_text in error]

0 commit comments

Comments
 (0)