Skip to content

Commit 423b44b

Browse files
authored
Merge pull request #37 from securenative/dev
Fix tests
2 parents a0e7d0e + 44ed958 commit 423b44b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.5
1+
0.2.6

securenative/context/context_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

securenative/utils/date_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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'

securenative/utils/version_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)