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()
|
print self.readMsg()
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
if not self.auth():
|
try:
|
||||||
self.close()
|
if not self.auth():
|
||||||
return
|
self.close()
|
||||||
self.readFileMeta()
|
return
|
||||||
self.readFiles()
|
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):
|
class ServerSocket(threading.Thread):
|
||||||
def __init__(self, db, port, maxqueue, **other):
|
def __init__(self, db, port, maxqueue, **other):
|
||||||
|
|
Loading…
Add table
Reference in a new issue