Working sample with exception handling

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Locked
User avatar
lachlank
 
Posts: 2
Joined: Mon Jun 24, 2013 12:02 am

Working sample with exception handling

Post by lachlank »

Hi
Has anyone got a working sample that catches errors with AdafruitIOError ?
I've tried a couple of things with no joy.
Thanks

User avatar
lachlank
 
Posts: 2
Joined: Mon Jun 24, 2013 12:02 am

Re: Working sample with exception handling

Post by lachlank »

Alright, got this working...

from Adafruit_IO import *
<other stuff goes here>
except errors.RequestError as e:
print e

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”