File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11from dimo .constants import dimo_constants
22from dimo .errors import check_type , check_optional_type
33from dimo .permission_decoder import PermissionDecoder
4+ import json
45
56
67class TokenExchange :
@@ -17,6 +18,8 @@ def __init__(
1718 def _decode_vehicle_permissions (self , token_id : int , client_id : str ) -> dict :
1819 response = self ._identity .check_vehicle_privileges (token_id )
1920 try :
21+ # If response is bytes
22+ response = json .loads (response .decode ('utf-8' ))
2023 nodes = (
2124 response .get ("data" , {})
2225 .get ("vehicle" , {})
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " dimo-python-sdk"
7- version = " 1.3.3 "
7+ version = " 1.3.4 "
88authors = [
99 { name =" Barrett Kowalsky" , email =" barrettkowalsky@gmail.com" },
1010]
You can’t perform that action at this time.
0 commit comments