jobin-sun / raspberry-gpio-python

Automatically exported from code.google.com/p/raspberry-gpio-python
MIT License
0 stars 0 forks source link

Change SetupException #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
At the moment it is not possible to catch RPi.GPIO.SetupException on an import 
of the module.  This is because RPi.GPIO.SetupException is declared as part of 
importing the module and is not in scope when the exception is thrown.

Suggested fix: replace RPi.GPIO.SetupException with a generic Python 
RuntimeError.

Original issue reported on code.google.com by btcros...@googlemail.com on 2 Mar 2013 at 2:25

GoogleCodeExporter commented 9 years ago
Added to source code library - will be in next release.

Original comment by btcros...@googlemail.com on 2 Mar 2013 at 2:38

GoogleCodeExporter commented 9 years ago

Original comment by btcros...@googlemail.com on 2 Mar 2013 at 2:38

GoogleCodeExporter commented 9 years ago
Released fix in 0.5.0a

Original comment by btcros...@googlemail.com on 3 Mar 2013 at 8:45