alan-turing-institute / netts

Toolbox for creating networks capturing semantic content of speech transcripts.
https://alan-turing-institute.github.io/netts/
GNU General Public License v3.0
8 stars 1 forks source link

Retry the each download once, if it fails #128

Closed Iain-S closed 3 years ago

Iain-S commented 3 years ago

Overview

If the first calls to requests.get and resp.iter_content fail due to a ChunkedEncodingError, we haver probably timed out when getting one of the bigger files. We retry once, and hope the network problem has corrected itself.

Closes

Checks

Information for reviewer

Should we add a wait in case the network needs a few ms to correct itself?