mirror of
https://github.com/munki/munki.git
synced 2026-04-23 04:59:17 -05:00
Better exception handling.
git-svn-id: http://munki.googlecode.com/svn/trunk@660 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user