Skip to content

Commit

Permalink
[script.module.dropbox] 10.3.1+matrix.1
Browse files Browse the repository at this point in the history
  • Loading branch information
robweber committed Oct 24, 2023
1 parent 972229b commit def8ce9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion script.module.dropbox/addon.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.module.dropbox"
name="Dropbox API"
version="10.3.1"
version="10.3.1+matrix.1"
provider-name="Dropbox">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
Expand All @@ -18,6 +18,8 @@
<website>https://www.dropbox.com/developers/documentation/python</website>
<source>https://github.com/dropbox/dropbox-sdk-python</source>
<news>
v10.3.1+matrix.1 (2023-10-24)
- fixes for strptime bug
v10.3.1 (2020-08-10)
- remove beta feature comments
v10.3.0 (2020-07-15)
Expand Down
5 changes: 4 additions & 1 deletion script.module.dropbox/lib/dropbox/stone_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,10 @@ def make_stone_friendly(self, data_type, val, validate):
"""
if isinstance(data_type, bv.Timestamp):
try:
ret = datetime.datetime.strptime(val, data_type.format)
try:
ret = datetime.datetime.strptime(val, data_type.format)
except TypeError:
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):
Expand Down

0 comments on commit def8ce9

Please sign in to comment.