mjuenema / python-sigfox-backend-api

Python wrapper for the Sigfox backend REST API
BSD 2-Clause "Simplified" License
5 stars 4 forks source link

Document exception #3

Closed mjuenema closed 7 years ago

mjuenema commented 7 years ago
try:
    s.user_list('does_not_exist')
except sigfoxapi.SigfoxError as e:
   pass     # Deal with exception

sigfoxapi.NONE_ERRORS    # on what errors???
mjuenema commented 7 years ago

Only raise exception on what codes? Return None on 404?

The Sigfox API uses a limited number of HTTP status codes:

mjuenema commented 7 years ago

Set sigfox.http_status