Skip to content
Snippets Groups Projects
Commit 6c569547 authored by Roman Haefeli's avatar Roman Haefeli
Browse files

don't fail on empty messages

parent 92058d01
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment