mirror of
https://github.com/munki/munki.git
synced 2026-04-22 20:48:36 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user