summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-07-21 22:03:14 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-07-21 22:03:14 (GMT)
commita7203d10375c9efa69b8a39f8a4c9f71c20f1e9e (patch)
tree0d448e56ab6ca04892b1feb23716bea708eaae0c /Mac
parent749f481478023f3aea9c2e7456240e84d8efe188 (diff)
downloadcpython-a7203d10375c9efa69b8a39f8a4c9f71c20f1e9e.zip
cpython-a7203d10375c9efa69b8a39f8a4c9f71c20f1e9e.tar.gz
cpython-a7203d10375c9efa69b8a39f8a4c9f71c20f1e9e.tar.bz2
Because plistlib doesn't catch all possible errors that can
happen while parsing a plistfile feeding an ill-formatted file to pimp may cause an exception. As a stopgap we use an unqualified except and print an error message "Unspecified error, probably ill-formatted database". Fixes #765621.
Diffstat (limited to 'Mac')
-rwxr-xr-xMac/Tools/IDE/PackageManager.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mac/Tools/IDE/PackageManager.py b/Mac/Tools/IDE/PackageManager.py
index eee5b0a..27cd239 100755
--- a/Mac/Tools/IDE/PackageManager.py
+++ b/Mac/Tools/IDE/PackageManager.py
@@ -253,6 +253,11 @@ class PimpInterface:
rv = "Cannot open %s: %s\n" % (url, arg)
rv += "\nSee MacPython Package Manager help page."
return rv
+ except:
+ rv = "Unspecified error while parsing database: %s\n" % url
+ rv += "Usually, this means the database is not correctly formatted.\n"
+ rv += "\nSee MacPython Package Manager help page."
+ return rv
# Check whether we can write the installation directory.
# If not, set to the per-user directory, possibly
# creating it, if needed.