Revert to Python pre-2.6 try/except format, since the new 2.6+ format breaks under Leopard, which uses Python 2.5.x by default.

git-svn-id: http://munki.googlecode.com/svn/trunk@892 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Greg Neagle
2010-11-06 19:28:47 +00:00
parent a3ef0f6ebc
commit 6334f35c6f
+2 -2
View File
@@ -66,11 +66,11 @@ def makecatalogs(repopath):
try:
pkginfo = plistlib.readPlist(filepath)
except IOError as inst:
except IOError, inst:
print >> sys.stderr, ("IO error for %s: %s" %
(filepath, inst))
continue
except Exception as inst:
except Exception, inst:
print >> sys.stderr, ("Unexpected error for %s: %s" %
(filepath, inst))
continue