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

poe plugin crashes when type is not set #1623

Closed
jmbredal opened this issue Nov 28, 2017 · 1 comment
Closed

poe plugin crashes when type is not set #1623

jmbredal opened this issue Nov 28, 2017 · 1 comment

Comments

@jmbredal
Copy link
Collaborator

2017-11-28 09:17:48,002 [ERROR jobs.jobhandler] [statuscheck xxx.xxx.xxx] Plugin nav.ipdevpoll.plugins.poe.Poe(u'xxx.xxx.xxx') reported an unhandled failure
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 577, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/source/python/nav/ipdevpoll/jobs.py", line 222, in next_plugin
    df = defer.maybeDeferred(plugin_instance.handle)
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 139, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1237, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1099, in _inlineCallbacks
    result = g.send(result)
  File "/source/python/nav/ipdevpoll/plugins/poe.py", line 38, in handle
    if self.netbox.type.vendor.id == 'cisco':
exceptions.AttributeError: 'NoneType' object has no attribute 'vendor'
@jmbredal jmbredal changed the title poe plugin crashes when device has no vendor poe plugin crashes when type is not set Nov 28, 2017
@lunkwill42
Copy link
Member

This looks like a duplicate of #1616

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

No branches or pull requests

2 participants