allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [allura] 06/06: [#8320] upgrade dateutil
Date Tue, 30 Jul 2019 21:17:08 GMT
This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch db/8320
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 97cc98dea5b108e9dcbd41751b04e7e426bffb70
Author: Dave Brondsema <dave@brondsema.net>
AuthorDate: Tue Jul 30 17:16:14 2019 -0400

    [#8320] upgrade dateutil
---
 Allura/allura/lib/helpers.py | 4 ++--
 requirements-dev.txt         | 2 +-
 requirements.in              | 2 +-
 requirements.txt             | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Allura/allura/lib/helpers.py b/Allura/allura/lib/helpers.py
index 7fdfacc..e53cdbe 100644
--- a/Allura/allura/lib/helpers.py
+++ b/Allura/allura/lib/helpers.py
@@ -430,7 +430,7 @@ def ago_ts(timestamp):
 def ago_string(s):
     try:
         return ago(parse(s, ignoretz=True))
-    except (ValueError, AttributeError):
+    except (ValueError, AttributeError, TypeError):
         return 'unknown'
 
 
@@ -439,7 +439,7 @@ class DateTimeConverter(FancyValidator):
     def _to_python(self, value, state):
         try:
             return parse(value)
-        except ValueError:
+        except (ValueError, TypeError):
             if self.if_invalid != formencode.api.NoDefault:
                 return self.if_invalid
             else:
diff --git a/requirements-dev.txt b/requirements-dev.txt
index 54109cd..8bdda91 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -72,7 +72,7 @@ pymongo==2.8.1
 pyparsing==2.4.0          # via packaging
 pypeline[creole,markdown,rst,textile]==0.5
 pysolr==3.6.0
-python-dateutil==1.5
+python-dateutil==2.8.0
 python-magic==0.4.3
 python-oembed==0.2.1
 pytz==2019.1
diff --git a/requirements.in b/requirements.in
index 84a2be1..bd91be5 100644
--- a/requirements.in
+++ b/requirements.in
@@ -28,7 +28,7 @@ Pygments==2.2.0
 pymongo==2.8.1
 Pypeline[creole,markdown,textile,rst]==0.5
 pysolr==3.6.0
-python-dateutil==1.5
+python-dateutil
 python-magic==0.4.3
 python-oembed==0.2.1
 pytz==2019.1
diff --git a/requirements.txt b/requirements.txt
index a2a7983..43b363a 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -65,7 +65,7 @@ pylint==1.9.5
 pymongo==2.8.1
 pypeline[creole,markdown,rst,textile]==0.5
 pysolr==3.6.0
-python-dateutil==1.5
+python-dateutil==2.8.0
 python-magic==0.4.3
 python-oembed==0.2.1
 pytz==2019.1


Mime
View raw message