mirror of
https://github.com/catspace-dev/unicheckbot.git
synced 2024-11-14 02:06:34 +03:00
remove check_int
This commit is contained in:
parent
70eb279982
commit
8a74756ab6
|
@ -11,15 +11,6 @@ from traceback import format_exc
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
|
|
||||||
def check_int(value) -> bool:
|
|
||||||
try:
|
|
||||||
int(value)
|
|
||||||
except ValueError:
|
|
||||||
return False
|
|
||||||
else:
|
|
||||||
return True
|
|
||||||
|
|
||||||
|
|
||||||
async def send_api_request(client: AsyncClient, endpoint: str, data: dict, node: APINode):
|
async def send_api_request(client: AsyncClient, endpoint: str, data: dict, node: APINode):
|
||||||
try:
|
try:
|
||||||
data['token'] = node.token
|
data['token'] = node.token
|
||||||
|
|
Loading…
Reference in New Issue
Block a user