This is the code, I used "python -OO -m py_compile <filename.py>" to compile it and gave it to one of my friends. One of them got this error and the other ran it just fine. I also turned the file from pyc to py. What is causing the issue?
import os
import requests
import time
import sys
from time import sleep
from tqdm import trange
def SendMsg(webhook, payload):
return requests.post(webhook, json=payload, headers={'Content-Type': 'application/json'})
def fun():
option = input("Do you want webhook delete or checker\n(1)Deleter\n(2)Checker\n(3)Credits\n:")
os.system('cls')
if option == "1":
webhook = input("Enter the webhook: ")
os.system('cls')
result = requests.delete(webhook)
for i in trange(100, ascii=False, ncols=75, desc="- Analyzing"):
sleep(0.01)
time.sleep(.5)
os.system('cls ')
try:
if 200 <= result.status_code < 300:
print(f"Webhook deleted!")
else:
print(f"{result.status_code}, response:\n{result.json()}")
except: print("Invalid Webhook smh")
elif option == "2":
webhook = input("Enter the webhook: ")
os.system('cls')
for i in trange(100, ascii=False, ncols=75, desc="- Analyzing"):
sleep(0.01)
time.sleep(.5)
os.system('cls')
epic = requests.get(webhook).json()
name = epic['name']
id = epic['id']
channel_id = epic['channel_id']
guild_id = epic['guild_id']
avatar = epic['avatar']
print(f"Name: {name}")
print(f"Avatar: {avatar}")
print(f"Id: {id}")
print(f"Channel id: {channel_id}")
print(f"Guild id: {guild_id}")
elif option == "3":
print("Credits")
else:
print("I can only do those 2 options")
input("Press enter to close")
os.system('cls')
fun()
fun()```