Accept unicode types too
This commit is contained in:
parent
465c49179c
commit
a03f850ce8
@ -29,7 +29,7 @@ def is_hex(s):
|
|||||||
|
|
||||||
def validate_activity_uid(uid):
|
def validate_activity_uid(uid):
|
||||||
"""Validate an activity UID."""
|
"""Validate an activity UID."""
|
||||||
if type(uid) != type(""):
|
if type(uid) != type("") and type(uid) != type(u""):
|
||||||
return False
|
return False
|
||||||
if len(uid) != ACTIVITY_UID_LEN:
|
if len(uid) != ACTIVITY_UID_LEN:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user