##// END OF EJS Templates
Zeroconf: catch both ValueError and KeyError in get()...
Augie Fackler -
r14063:87ebf728 default
parent child Browse files
Show More
@@ -808,7 +808,7 b' class DNSCache(object):'
808 try:
808 try:
809 list = self.cache[entry.key]
809 list = self.cache[entry.key]
810 return list[list.index(entry)]
810 return list[list.index(entry)]
811 except KeyError:
811 except (KeyError, ValueError):
812 return None
812 return None
813
813
814 def getByDetails(self, name, type, clazz):
814 def getByDetails(self, name, type, clazz):
General Comments 0
You need to be logged in to leave comments. Login now