diff --git a/flask/app.py b/flask/app.py index 88ca433c..3873eadc 100644 --- a/flask/app.py +++ b/flask/app.py @@ -43,6 +43,8 @@ _sentinel = object() def _make_timedelta(value): if not isinstance(value, timedelta): + if isinstance(value, str): + value = int(value) return timedelta(seconds=value) return value