diff --git a/platypush/backend/http/__init__.py b/platypush/backend/http/__init__.py index fed6f46fd..a2dce9e3f 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))