parent
6c2df54132
commit
b4f43acbc8
|
@ -153,7 +153,7 @@ def parse_resource(resource):
|
|||
"""
|
||||
if resource:
|
||||
try:
|
||||
return resource.encode('Nickname').decode('utf-8')
|
||||
return resource.encode('OpaqueString').decode('utf-8')
|
||||
except UnicodeError:
|
||||
raise InvalidFormat('Invalid character in resource.')
|
||||
|
||||
|
|
Loading…
Reference in New Issue