Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/Reflector.py
diff options
context:
space:
mode:
Diffstat (limited to 'Reflector.py')
-rw-r--r--Reflector.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Reflector.py b/Reflector.py
index bcbb82f..1f22f18 100644
--- a/Reflector.py
+++ b/Reflector.py
@@ -212,7 +212,7 @@ def rate_rsync(db_url, connection_timeout=DEFAULT_CONNECTION_TIMEOUT):
r = size / dt
return dt, r
except (subprocess.CalledProcessError, subprocess.TimeoutExpired, FileNotFoundError):
- return None, 0
+ return 0, 0
@@ -230,7 +230,7 @@ def rate_http(db_url, connection_timeout=DEFAULT_CONNECTION_TIMEOUT):
r = size / (dt)
return dt, r
except (OSError, urllib.error.HTTPError, http.client.HTTPException):
- return None, 0
+ return 0, 0