Better exception handling.

git-svn-id: http://munki.googlecode.com/svn/trunk@660 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Greg Neagle
2010-08-04 23:08:55 +00:00
parent 3b32e199de
commit 235ce74b25
+1 -1
View File
@@ -89,7 +89,7 @@ def readResponse():
# our responses are really short
data = SOCK.recv(256)
return int(data.rstrip('\n'))
except ValueError:
except (ValueError, TypeError):
# MunkiStatus returned an illegal value
# ignore for now
return 0