File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- 0.2.5
1+ 0.2.6
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def default_context_builder():
4444 def from_http_request (request ):
4545 try :
4646 client_token = request .cookies [RequestUtils .SECURENATIVE_COOKIE ]
47- except AttributeError :
47+ except Exception :
4848 client_token = None
4949
5050 try :
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ class DateUtils(object):
66 @staticmethod
77 def to_timestamp (date ):
88 try :
9- if not date or date is "" :
9+ if not date or date == "" :
1010 return datetime .utcnow ().strftime ('%Y-%m-%dT%H:%M:%S.%f' )[:- 3 ] + 'Z'
1111 return datetime .strptime (date , '%Y-%m-%dT%H:%M:%S.%f' [:- 3 ] + 'Z' )
1212 except Exception :
13- return ""
13+ return datetime . utcnow (). strftime ( '%Y-%m-%dT%H:%M:%S.%f' )[: - 3 ] + 'Z'
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ class VersionUtils(object):
22
33 @staticmethod
44 def get_version ():
5- return "0.2.5 "
5+ return "0.2.6 "
You can’t perform that action at this time.
0 commit comments