summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-03-21 09:12:51 +0100
committerErich Eckner <git@eckner.net>2019-03-21 09:12:51 +0100
commitdc587542b964944c9bafd20e91ac0fcefc36d24a (patch)
tree6dc7a9336fcafd0064de138d9eb8ddc68b8019b7
parentc944bb0374256554698c3190b3470bfae70d21ba (diff)
downloadreflector32-dc587542b964944c9bafd20e91ac0fcefc36d24a.tar.xz
upstream version 2019.3
-rw-r--r--Reflector.py4
-rw-r--r--setup.py2
2 files changed, 3 insertions, 3 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
diff --git a/setup.py b/setup.py
index e06748f..a359f55 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ import time
setup(
name='''Reflector''',
- version=time.strftime('%Y.%m.%d.%H.%M.%S', time.gmtime(1551526611)),
+ version=time.strftime('%Y.%m.%d.%H.%M.%S', time.gmtime(1552010079)),
description='''A Python 3 module and script to retrieve and filter the latest Pacman mirror list.''',
author='''Xyne''',
author_email='''ac xunilhcra enyx, backwards''',