Skip to content

Commit

Permalink
Merge pull request #3 from caruhome/livioso-patch-retry-on-remote-disc
Browse files Browse the repository at this point in the history
fix: retry on RemoteDisconnected
  • Loading branch information
philippbachmann08 authored Jan 13, 2020
2 parents 2c56e77 + efaa691 commit 3949ad2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/upparat/statemachine/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import urllib.request
from urllib.error import HTTPError
from urllib.error import URLError
from http.client import RemoteDisconnected

import backoff
import pysm
Expand All @@ -25,7 +26,7 @@


@backoff.on_exception(
backoff.expo, (URLError, HTTPError, socket.timeout), jitter=backoff.full_jitter
backoff.expo, (URLError, HTTPError, RemoteDisconnected, socket.timeout), jitter=backoff.full_jitter
)
def download(job, stop_download, publish, update_job_progress):
start_position_bytes = 0
Expand Down

0 comments on commit 3949ad2

Please sign in to comment.