mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Fix #572
Tempted to add a FAQ entry about this anyway as it's come up multiple times
This commit is contained in:
@@ -448,7 +448,7 @@ def _default_pin_factory(name=os.getenv('GPIOZERO_PIN_FACTORY', None)):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
PinFactoryFallback(
|
PinFactoryFallback(
|
||||||
'Failed to load factory %s: %s' % (name, str(e))))
|
'Falling back from %s: %s' % (name, str(e))))
|
||||||
raise BadPinFactory('Unable to load any default pin factory!')
|
raise BadPinFactory('Unable to load any default pin factory!')
|
||||||
else:
|
else:
|
||||||
for factory in pkg_resources.iter_entry_points(group, name.lower()):
|
for factory in pkg_resources.iter_entry_points(group, name.lower()):
|
||||||
|
|||||||
Reference in New Issue
Block a user