diff --git a/platypush/backend/http/__init__.py b/platypush/backend/http/__init__.py index fed6f46fd7..a2dce9e3f5 100644 --- a/platypush/backend/http/__init__.py +++ b/platypush/backend/http/__init__.py @@ -253,7 +253,7 @@ class HttpBackend(Backend): except ValueError: pass - m = re.match('([-+]?)(\d+)([dhms])', time_string) + m = re.match('([-+]?)([0-9]+)([dhms])', time_string) if not m: raise RuntimeError('Invalid time interval string representation: "{}"'. format(time_string))