pycom / pycom-libraries

MicroPython libraries and examples that work out of the box on Pycom's IoT modules
330 stars 378 forks source link

lorawan-nano-gateway/nanogateway.py: Fix error handling #107

Closed robert-hh closed 4 years ago

robert-hh commented 4 years ago

Starting with version 1.20.1, the object returned by: except Exception as exp: does not have the attribute exp.errno any more. Instead, exp.args[0] is used, which is backward compatible.