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

exceptions.TypeError: 'NoneType' object is not iterable #133

Open
KnottyUK opened this issue Jul 22, 2022 · 0 comments
Open

exceptions.TypeError: 'NoneType' object is not iterable #133

KnottyUK opened this issue Jul 22, 2022 · 0 comments

Comments

@KnottyUK
Copy link

Hi,

I've built a Raspbian Buster on Raspberry Pi Zero W Rev 1.1 and I'm using Python 2.7.16.

When I run the script manually with the door sensor in different states, open or closed, this is correctly reported on the web page. However, if I try to change the state with the script running the change isn't reported.

pi@WestonsSecurity1:~/garage-door-controller $ python2 controller.py
Unhandled error in Deferred:

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1267, in run
self.mainLoop()
File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1276, in mainLoop
self.runUntilCurrent()
File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 902, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/usr/lib/python2.7/dist-packages/twisted/internet/task.py", line 239, in call
d = defer.maybeDeferred(self.f, *self.a, **self.kw)
--- ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 151, in maybeDeferred
result = f(*args, **kw)
File "controller.py", line 152, in status_check
self.send_msg(door, title, message)
File "controller.py", line 166, in send_msg
for alert in self.alert_type:
exceptions.TypeError: 'NoneType' object is not iterable

Any help would be greatly appreciated.

Regards,
Paul.

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

No branches or pull requests

1 participant