Switch from Error to PluginError

This commit is contained in:
Liam Marshall 2015-10-25 14:31:30 -05:00
parent a45c4d157a
commit a88f9cdc37

View file

@ -162,7 +162,7 @@ binary for temporary key/certificate generation.""".replace("\n", "")
else:
if not zope.component.getUtility(interfaces.IDisplay).yesno(
self.IP_DISCLAIMER, "Yes", "No"):
raise errors.Error("Must agree to IP logging to proceed")
raise errors.PluginError("Must agree to IP logging to proceed")
self._notify_and_wait(self.MESSAGE_TEMPLATE.format(
validation=validation.json_dumps(), response=response,