mirror of
https://github.com/catspace-dev/unicheckbot.git
synced 2024-11-21 21:46:32 +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