Skip to content

ValueError: invalid literal for int() with base 10: '' #57

@FabioNevesRezende

Description

@FabioNevesRezende

I've just followed the step to install and setup using docker, when I run docker-compose up it fails with:

bot_1 | Traceback (most recent call last):
bot_1 | File "run.py", line 3, in
bot_1 | from src.bot import Bot
bot_1 | File "/code/src/bot.py", line 6, in
bot_1 | from src.handler import *
bot_1 | File "/code/src/handler/init.py", line 1, in
bot_1 | from .command_handler import CommandHandler
bot_1 | File "/code/src/handler/command_handler.py", line 7, in
bot_1 | from .commands import commands
bot_1 | File "/code/src/handler/commands/init.py", line 5, in
bot_1 | from src.handler.commands.moderate import Moderate
bot_1 | File "/code/src/handler/commands/moderate.py", line 5, in
bot_1 | class Moderate(Base):
bot_1 | File "/code/src/handler/commands/moderate.py", line 7, in Moderate
bot_1 | gods = config.getlist('bot', 'god_mode', type=int)
bot_1 | File "/code/src/config.py", line 18, in getlist
bot_1 | return list(map(lambda o: type(o), config.get(section, option).split(',')))
bot_1 | File "/code/src/config.py", line 18, in
bot_1 | return list(map(lambda o: type(o), config.get(section, option).split(',')))
bot_1 | ValueError: invalid literal for int() with base 10: ''
imaginaryfriend_bot_1 exited with code 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