forked from Firepup650/FireBot
Update the signature on bot.exit()
This commit is contained in:
parent
ecbc21f907
commit
dd5b432ead
1 changed files with 2 additions and 2 deletions
4
bot.py
4
bot.py
|
@ -3,7 +3,7 @@ from socket import socket, AF_INET, SOCK_STREAM
|
|||
from overrides import bytes, bbytes
|
||||
from logs import log
|
||||
import re
|
||||
|
||||
from typing import NoReturn
|
||||
|
||||
class bot:
|
||||
def __init__(server: str):
|
||||
|
@ -44,6 +44,6 @@ class bot:
|
|||
def log(self, message: object) -> None:
|
||||
log(message, self.server)
|
||||
|
||||
def exit(message: object) -> None:
|
||||
def exit(message: object) -> NoReturn:
|
||||
log(message, self.server, "EXIT")
|
||||
exit(1)
|
||||
|
|
Loading…
Reference in a new issue