Skip to content
Sign upLog in
← Back to Community
I accidentally broke my script, help
Profile icon
AzureScripts

Idk what i did but now my "else:" is giving me a syntax error

Voters
Profile icon
UnyilOzan
Profile icon
JoshCross2004
Profile icon
AzureScripts
Comments
hotnewtop
Profile icon
Coder100

image

You forgot to close your parentheses on line 13!

print("[FOUND] " + https_a + " (" + socket.gethostbyname(a) + ")")
Profile icon
PattanAhmed

@AzureScripts
Hi,
Silly error:-
You forgot to close the print statement's parentheses on line 13.
Change your code to like this on line 13:-

print("[FOUND] " + https_a + " (" + socket.gethostbyname(a) + ")")

Or change lines from 7 to 18:-

def check(a): try: https_a = "https://" + a r = requests.get(https_a) # This checks to see the status code if r.status_code == 200 or r.status_code == 301 or r.status_code == 302: print("[FOUND] " + https_a + " (" + socket.gethostbyname(a) + ")") else: pass except: pass

That's it
Thanks!

Hope this helps

Profile icon
gibbsfreenergy

Wait, did you call the person silly or the question silly?

@PattanAhmed

Profile icon
PattanAhmed

@JosephSanthosh
LoL!
Wait.
I called the

errorrr

as silly.

lmao

Profile icon
gibbsfreenergy
Profile icon
PattanAhmed