Skip to content

Random stop and throws this error #5

@MoZyo

Description

@MoZyo

Running via discord_auto_typer[updated].py

Randomly stops and throws this. Encountered this a few times now.

Traceback (most recent call last):
  File "D:\Name\dank-memer-button-update-autotyper-main\discord_auto_typer[updated].py", line 189, in hl_response
    hint_message = response_dict[0]["embeds"][0]["description"]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Name\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "C:\Users\Name\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "D:\Name\dank-memer-button-update-autotyper-main\discord_auto_typer[updated].py", line 246, in main
    reply_to_dank_memer(command) #sleep in this function, get the reply first
  File "D:\Name\dank-memer-button-update-autotyper-main\discord_auto_typer[updated].py", line 88, in reply_to_dank_memer
    hl_response(response_dict)
  File "D:\Name\dank-memer-button-update-autotyper-main\discord_auto_typer[updated].py", line 201, in hl_response
    trivia_response(response_dict[1:])
NameError: name 'trivia_response' is not defined. Did you mean: 'crime_response'?

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