Jason Tackaberry wrote: > On 2008-01-11 13:34, Dirk Meyer wrote: >> We do not dump the exception, we crash. > > Right, I see that now. I still like the idea of an "unhandled > exception" signal. Maybe I don't want to exit the mainloop.
I have no idea what to do in such an exception handler. So Freevo
raises an AttributeError, what now? I have no idea how to handle
it. OK, I could ask the user if he wants to ignore an error or
stop. So maybe add a callback to main.run() with a callback.
def run(callback=None):
[...]
set_as_mainthread()
while True
try:
while True:
notifier.step()
except (KeyboardInterrupt, SystemExit):
[...]
except Exception, e:
if callback is None:
log.exception('loop')
break
callback(e)
_running = False
stop()
--
Nondeterminism means never having to say you are wrong.
pgpAdGV0Jn8Hn.pgp
Description: PGP signature
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ Freevo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel
