Black Lives Matter - Action and Equality. ... Adafruit is part of the Stop Hate for Profit campaign. Adafruit is open and shipping.
0

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.
Please be positive and constructive with your questions and comments.

Working sample with exception handling

by lachlank on Thu Mar 03, 2016 6:09 am

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

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

Re: Working sample with exception handling

by lachlank on Mon Mar 07, 2016 7:33 pm

Alright, got this working...

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

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

Please be positive and constructive with your questions and comments.