X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dhcp.git/blobdiff_plain/2ed651c18878099cf940b07a9136387a643dd464..983fb79bd981ce343422d292cc0d1d1831a82158:/invirt-dhcpserver diff --git a/invirt-dhcpserver b/invirt-dhcpserver index 74e554f..04376d0 100755 --- a/invirt-dhcpserver +++ b/invirt-dhcpserver @@ -25,7 +25,7 @@ class DhcpBackend: database.connect() def findNIC(self, mac): database.clear_cache() - return database.NIC.query().filter_by(mac_addr=mac).one() + return database.NIC.query().filter_by(mac_addr=mac).first() def find_interface(self, packet): chaddr = hwmac(packet.GetHardwareAddress()) nic = self.findNIC(str(chaddr))