2
0
mirror of https://github.com/flotwig/spoofident synced 2025-08-22 01:57:44 +00:00

Exceptions Exceptions Exceptions Exceptions

This commit is contained in:
Zach Bloomquist 2014-06-16 17:27:18 -04:00
parent 82e4817469
commit 9566b80bd6

View File

@ -12,7 +12,7 @@ def handleIdent(fd):
data=fd.recv(1024).strip()
if data: break
except:
pass
pass # TODO: catch exceptions which are actual errors, as opposed to no-data reports
ports=data.split(',',2)
ports=map(validPort,ports)
if not data:
@ -54,4 +54,7 @@ if __name__ == '__main__':
client,addr=ready.accept()
inready.append(client)
else:
handleIdent(ready)
try:
handleIdent(ready)
except:
pass