Skip to content

irc.bot.get_version() fails with exception. #28

@jaraco

Description

@jaraco

The relevant exception is

#!python

TypeError: sequence item 0: expected string, int found

What happens is that irc.client.VERSION is a tuple of integers. In fact, it is tested that this is the case.

Problem is that bot.get_version() tries to do

#!python

'.'.join(irc.client.VERSION)

which raises the Type Error since it can't join said tuple of integers and instead expects a tuple of strings.

Easiest way to fix would be to change the above call to

#!python

'.'.join(map(str, irc.client.VERSION))

but I'm figuring you'll opt for a more readable fix and perhaps an accompanying test.


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