Add missing raise keyword for UDP not supported error

This commit is contained in:
Brian May 2022-04-24 16:09:55 +10:00
parent 6f92bd8ccf
commit 10341f3ad6

View File

@ -72,7 +72,7 @@ class BaseMethod(object):
def send_udp(self, sock, srcip, dstip, data): def send_udp(self, sock, srcip, dstip, data):
if srcip is not None: if srcip is not None:
Fatal("Method %s send_udp does not support setting srcip to %r" raise Fatal("Method %s send_udp does not support setting srcip to %r"
% (self.name, srcip)) % (self.name, srcip))
sock.sendto(data, dstip) sock.sendto(data, dstip)