Skip to content

Unhandled error in Deferred: #3

@white-gecko

Description

@white-gecko

I get following error, when I try to publish something to the hub.

Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/web/server.py", line 167, in render
    body = resrc.render(self)
  File "/usr/lib/python2.7/dist-packages/twisted/web/resource.py", line 216, in render
    return m(request)
  File "/home/natanael/.local/lib/python2.7/site-packages/miyamoto-0.0.2-py2.7.egg/miyamoto/pubsub.py", line 136, in render_POST
    publish(url)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1187, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1045, in _inlineCallbacks
    result = g.send(result)
  File "/home/natanael/.local/lib/python2.7/site-packages/miyamoto-0.0.2-py2.7.egg/miyamoto/pubsub.py", line 43, in publish
    if len(subscribers):
exceptions.TypeError: object of type 'NoneType' has no len()

Am I doing something wrong or is it a bug?
The tests are running through without any problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions