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