Commit 6c569547 authored by Roman Haefeli's avatar Roman Haefeli
Browse files

don't fail on empty messages

parent 92058d01
......@@ -94,7 +94,10 @@ while True:
try:
methods[command[0]]()
except:
sock.sendto(command[0] + ': method not implemented\n', srcaddr)
try:
sock.sendto(command[0] + ': method not implemented\n', srcaddr)
except:
pass
# forward data according to lookup table
try:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment