Skip to content

Bot crash who.py #7

@Duality4Y

Description

@Duality4Y

the bot crashes in who.py with:

[2016-10-18 13:48:57,805] INFO: get config who.hosts
Traceback (most recent call last):
  File "/home/duality/ircbot/modules/__init__.py", line 186, in enable_module
    self.loaded_modules[module_name] = self.modules[module_name](self)
  File "/home/duality/ircbot/modules/who.py", line 22, in __init__
    self.ubus_rpc = Main(config)
  File "/home/duality/ircbot/modules/who.py", line 218, in __init__
    self.mac_db = MACDatabase()
  File "/home/duality/ircbot/modules/who.py", line 110, in __init__
    self.update(self.parse_wireshark_db())
  File "/home/duality/ircbot/modules/who.py", line 134, in parse_wireshark_db
    mac, name = line.split('\t', 1)
ValueError: not enough values to unpack (expected 2, got 1)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./__main__.py", line 71, in <module>
    sys.exit(main(sys.argv[1:]))
  File "./__main__.py", line 43, in main
    botje = Bot.Bot()
  File "/home/duality/ircbot/Bot.py", line 68, in __init__
    self.modules.enable_module( module_name )
  File "/home/duality/ircbot/modules/__init__.py", line 188, in enable_module
    raise ModuleLoadException(e)
modules.ModuleLoadException: ModuleLoadException(not enough values to unpack (expected 2, got 1))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions