Skip to content

Commit 57f5be3

Browse files
ikonstgarrettheel
authored andcommitted
ScanError: reword error for missing consumed capacity (pynamodb#506)
1 parent 0f15bb1 commit 57f5be3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pynamodb/connection/base.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,10 +1179,12 @@ def rate_limited_scan(self,
11791179
if allow_rate_limited_scan_without_consumed_capacity:
11801180
latest_scan_consumed_capacity = 0
11811181
else:
1182-
raise ScanError('Rate limited scan not possible because the server did not send back'
1183-
'consumed capacity information. If you wish scans to complete anyway'
1184-
'without functioning rate limiting, set '
1185-
'allow_rate_limited_scan_without_consumed_capacity to True in settings.')
1182+
raise ScanError(
1183+
'Rate limited scan not possible because the server did not report '
1184+
'consumed capacity. To continue scanning without rate limiting '
1185+
'(such as when using DynamoDB Local, which does not report consumed capacity), '
1186+
'set allow_rate_limited_scan_without_consumed_capacity to True in settings.'
1187+
)
11861188

11871189
last_evaluated_key = data.get(LAST_EVALUATED_KEY, None)
11881190
consecutive_provision_throughput_exceeded_ex = 0

0 commit comments

Comments
 (0)