Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in master Branch #9

Closed
tikismoke opened this issue Sep 10, 2016 · 2 comments
Closed

Exception in master Branch #9

tikismoke opened this issue Sep 10, 2016 · 2 comments
Labels

Comments

@tikismoke
Copy link
Contributor

a problem with the get_status with accelerometer.

Traceback (most recent call last):
  File "xee_exemple.py", line 31, in <module>
    Status  ,error = xee.get_status(carID,token.access_token)
  File "/usr/local/lib/python2.7/dist-packages/xee-3.0.1-py2.7.egg/xee/sdk.py", line 217, in get_status
    return xee_entities.parse_status(response), None
  File "/usr/local/lib/python2.7/dist-packages/xee-3.0.1-py2.7.egg/xee/entities.py", line 309, in parse_status
    Accelerometer(accelerometer['x'], accelerometer['y'], accelerometer['z'],
TypeError: 'NoneType' object has no attribute '__getitem__'

@tikismoke
Copy link
Contributor Author

le pull request evite l'erreur, mais du coup get_status est vide :(

@tikismoke
Copy link
Contributor Author

Works great, your a chief :)

quentin7b added a commit that referenced this issue Sep 10, 2016
Fixes #9 : [Status] check fields before assignment
quentin7b added a commit that referenced this issue Sep 22, 2016
See #28 

Fixes #12 : [FIX] Car : Licence for driver but License in API
Fixes #9 : [FIX] Status : Check fields before assignment
Fixes #23 : [MISC] Python : 2.7 backward compatibility
Fixes #21 : [MISC] Tests : Add some tests
Fixes #19 : [Doc] Contributing : Add contributing guidelines
[MISC] CI : Add continuous integration system
Fixes #26 : [Feat] Trip : Add trip statistics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants