-----BEGIN PGP SIGNED MESSAGE-----
ah that’s interesting, I’ve tried and for me, it fails. Strange. I’m
going to investigate that.
However, if that syntax is ok, then I’m out of ideas. You’re not
giving out all too much details, though. When excatly does this
exception occur? Does your block work at all? Does it work when
commenting out functionality? How about print “done this and that”
debugging? Do your two blocks share the same database connection (if
that’s the case, are you doing multithreading correctly?)?
My only guess would still be that one of your except clauses throws an
Exception. Maybe “print message”, if message = pmt.symbol_to_string()
By the way, “caught unrecognized exception” comes from the C++ domain,
it happens when there is an uncaught C++ exception, which might have
nothing to do with your executed python.
What you can do is run your program in a debugger, i.e.
$ gdb --args python your_python_flowgraph.py
interrupt (ctrl-z), try to set a breakpoint at
then continue running your program
and see what happened prior to that call:
On 16.04.2014 10:45, Nemanja S. wrote:
Also, don’t do system.exit() in a multithreaded application,
caught unrecognized exception
msg_lines sensor_type = msg_lines time = msg_lines
message print msg_lines print 50*’-’
a try and catch not only the database related errors?
I have two blocks of db_logger type and it looks like
mdb.Error, e: print "Unexpected error while trying
mailing list [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
-----END PGP SIGNATURE-----