parent
a3d1056122
commit
a4ce0222bf
|
@ -308,11 +308,13 @@ class TAXIICollectionSource(DataSource):
|
||||||
" the supplied TAXII Collection object are either not found or access is"
|
" the supplied TAXII Collection object are either not found or access is"
|
||||||
" denied. Received error: ", e,
|
" denied. Received error: ", e,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# TAXII 2.0 paging can result in a 416 (Range Not Satisfiable) if
|
||||||
|
# the server isn't sending Content-Range headers, so the pager just
|
||||||
|
# goes until it runs out of pages. So 416 can't be treated as a
|
||||||
|
# real error, just an end-of-pages condition. For other codes,
|
||||||
|
# propagate the exception.
|
||||||
elif e.response.status_code != 416:
|
elif e.response.status_code != 416:
|
||||||
# TAXII 2.0 paging can result in a 416 (Range Not Satisfiable)
|
|
||||||
# if the server isn't sending Content-Range headers, so the
|
|
||||||
# pager just goes until it runs out of pages. So 416 can't be
|
|
||||||
# treated as a real error, just an end-of-pages condition.
|
|
||||||
raise
|
raise
|
||||||
|
|
||||||
# deduplicate data (before filtering as reduces wasted filtering)
|
# deduplicate data (before filtering as reduces wasted filtering)
|
||||||
|
|
Loading…
Reference in New Issue