233
233
not self.getImportedBugMessages().is_empty()):
234
234
raise BugWatchDeletionError(
235
235
"Can't delete bug watches linked to tasks or comments.")
238
236
# XXX 2010-09-29 gmb bug=647103
239
237
# We flush the store to make sure that errors bubble up and
240
238
# are caught by the OOPS machinery.