From b9e0424ea5fdf356b19e0d7273c5ec7155e390fa Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Fri, 30 Aug 2019 15:26:52 -0500 Subject: [PATCH] dropbox change per https://www.dropboxforum.com/t5/API-Support-Feedback/Upload-Error-with-v2-migration-from-v1/td-p/244561 --- resources/lib/dropbox/stone_serializers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/lib/dropbox/stone_serializers.py b/resources/lib/dropbox/stone_serializers.py index 3622dbc..faf1b6a 100644 --- a/resources/lib/dropbox/stone_serializers.py +++ b/resources/lib/dropbox/stone_serializers.py @@ -880,6 +880,12 @@ class PythonPrimitiveToStoneDecoder(object): if isinstance(data_type, bv.Timestamp): try: ret = datetime.datetime.strptime(val, data_type.format) + except: + #datetime.datetime.strptime(val, data_type.format) returned NoneType. Trying alterntive + pass + + try: + ret = datetime.datetime(*(time.strptime(val, data_type.format)[0:6])) except (TypeError, ValueError) as e: raise bv.ValidationError(e.args[0]) elif isinstance(data_type, bv.Bytes):