Commit 1e8063cf authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Ignore MissingSection exception in _uninstall_part().

parent e62fdc2f
...@@ -93,7 +93,10 @@ Buildout will be restarted automatically to have this change applied. ...@@ -93,7 +93,10 @@ Buildout will be restarted automatically to have this change applied.
_uninstall_part_orig = zc.buildout.buildout.Buildout._uninstall_part _uninstall_part_orig = zc.buildout.buildout.Buildout._uninstall_part
def _uninstall_part(self, part, installed_part_options): def _uninstall_part(self, part, installed_part_options):
_uninstall_part_orig(self, part, installed_part_options) _uninstall_part_orig(self, part, installed_part_options)
location = self[part].get('location') try:
location = self[part].get('location')
except zc.buildout.buildout.MissingSection:
return
if location and sys.executable.startswith(location): if location and sys.executable.startswith(location):
message = """ message = """
************ REBOOTSTRAP: IMPORTANT NOTICE ************ ************ REBOOTSTRAP: IMPORTANT NOTICE ************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment