mirror of
https://github.com/NovaOSS/nova-cord.git
synced 2024-11-25 21:33:58 +01:00
Fix
This commit is contained in:
parent
9dd92a80a3
commit
3859d984b5
|
@ -13,7 +13,7 @@ load_dotenv()
|
||||||
async def verify(interaction) -> bool:
|
async def verify(interaction) -> bool:
|
||||||
try:
|
try:
|
||||||
resp = requests.post(
|
resp = requests.post(
|
||||||
url='https://nova-oss.com/api/tos-verification',
|
url='http://localhost:2323/api/tos-verification',
|
||||||
timeout=5,
|
timeout=5,
|
||||||
headers={
|
headers={
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
@ -21,9 +21,12 @@ async def verify(interaction) -> bool:
|
||||||
}
|
}
|
||||||
).json()
|
).json()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
await embedder.error(interaction, """Sorry,
|
await embedder.error(interaction, f"""Sorry,
|
||||||
the API server for the verification system is not functioning,
|
the API server for the verification system is not functioning,
|
||||||
which means you can\'t create a new key right now. Please report this issue to the staff!""")
|
which means you can\'t create a new key right now. Please report this issue to the staff:
|
||||||
|
|
||||||
|
```{type(exc)} - {exc}```
|
||||||
|
""")
|
||||||
raise exc
|
raise exc
|
||||||
|
|
||||||
success = False
|
success = False
|
||||||
|
|
Loading…
Reference in a new issue