On Fri, 2007-12-28 at 16:44 +0100, Tim Lauridsen wrote: > Jeremy Katz wrote: > > This would still mean that basically the entire app would have to run > > under try/except PluginError. And that still just ends up meaning that > > the user gets relatively screwed. > > > In the PackageKit yum backend i have created a custom exception handler > to catch all unhandled tracebacks and send all traceback info to the > packagekit frontend in a predefined error format. > http://gitweb.freedesktop.org/?p=packagekit.git;a=blob;h=170d9cc416ab8353f94d7f41912a624016cf7f90;hb=95f7d17acf8d2194d6edd312934a602e63cf4d21;f=python/packagekit/backend.py > > in this way it possible to handle some tracebacks in special way, > without try/execept all the code.
Having an exception handler like this is irrelevant. You still end up presenting the user with "Something tracebacked. Have fun figuring out what went wrong and fixing it!". If you want to catch them as plugin errors, then you really want to catch them when they happen, disable the plugin (or at least, allow disabling the plugin) and then be able to continue with normal execution Jeremy _______________________________________________ Yum-devel mailing list [email protected] https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
