Tempted to add a FAQ entry about this anyway as it's come up multiple
times
This commit is contained in:
Dave Jones
2017-07-14 14:29:36 +01:00
parent 13f5e5ea3b
commit 4009bf39df

View File

@@ -448,7 +448,7 @@ def _default_pin_factory(name=os.getenv('GPIOZERO_PIN_FACTORY', None)):
except Exception as e:
warnings.warn(
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!')
else:
for factory in pkg_resources.iter_entry_points(group, name.lower()):