Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix AttributeError: NoneType' object has no attribute 'ChangeDutyCycle #220

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

saniaxxx
Copy link

@saniaxxx saniaxxx commented Oct 4, 2018

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1988, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1641, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1544, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1639, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1625, in dispatch_request
return self.view_functionsrule.endpoint
File "/usr/local/lib/python2.7/dist-packages/flask_classy.py", line 200, in proxy
response = view(**request.view_args)
File "/home/pi/craftbeerpi3/modules/actor/init.py", line 39, in power
self.api.actor_power(id, power)
File "/home/pi/craftbeerpi3/modules/core/core.py", line 68, in actor_power
actor.instance.set_power(power=power)
File "/home/pi/craftbeerpi3/modules/base_plugins/gpio_actor/init.py", line 67, in set_power
self.p.ChangeDutyCycle(self.power)
AttributeError: 'NoneType' object has no attribute 'ChangeDutyCycle'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant