merge-fix: get rid of __all__ definition and handle BugNotFound again

I accidentally removed the BugNotFound handling in my last merge, and
the __all__ definition is not needed any longer.