mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
made it a nicer error message
This commit is contained in:
parent
18769e5b02
commit
592565d863
1 changed files with 11 additions and 5 deletions
|
@ -164,11 +164,17 @@ class ClientSocket(threading.Thread):
|
|||
print self.readMsg()
|
||||
|
||||
def run(self):
|
||||
try:
|
||||
if not self.auth():
|
||||
self.close()
|
||||
return
|
||||
self.readFileMeta()
|
||||
self.readFiles()
|
||||
except RuntimeError, err:
|
||||
if err.__str__() == "socket connection broken":
|
||||
print "Client disconnected, cleaning up"
|
||||
self.close()
|
||||
return
|
||||
|
||||
class ServerSocket(threading.Thread):
|
||||
def __init__(self, db, port, maxqueue, **other):
|
||||
|
|
Loading…
Add table
Reference in a new issue