Re: [Discuss-gnuradio] catching unrecognized exception

2014-04-16 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Nemanja, 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 occ

Re: [Discuss-gnuradio] catching unrecognized exception

2014-04-16 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Mike, it's not. It's part of the block name ;): gnuradio-runtime/include/gnuradio/thread/thread_body_wrapper.h:63 std::cerr << "thread[" << d_name << "]: " << "caught unrecognized exception\n"; Greetings, Marcus

Re: [Discuss-gnuradio] catching unrecognized exception

2014-04-16 Thread Nemanja Savic
the last message was not clear. So, I made sql syntax error and run the program, with my old syntax, and exception was caught, so the error should be somewhere else. On Wed, Apr 16, 2014 at 10:45 AM, Nemanja Savic wrote: > Hello again, > > Marcus, you are right, my syntax is not any more corre

Re: [Discuss-gnuradio] catching unrecognized exception

2014-04-16 Thread Nemanja Savic
Hello again, Marcus, you are right, my syntax is not any more correct but there is backwards compatibility. I initiated error on my own and everything works fine, so I would say there should be rather something more serious. On Tue, Apr 15, 2014 at 4:31 PM, Marcus Müller wrote: > -BEGIN PG

Re: [Discuss-gnuradio] catching unrecognized exception

2014-04-15 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Nemanja, Simple explanation: You haven't fixed your syntax for the first except clause. Going back to my other post, it should read "except mdb.Error as e:", not "except mdb.Error, e". Because you didn't do that, "e" is undefined in your except cl

Re: [Discuss-gnuradio] catching unrecognized exception

2014-04-15 Thread Nemanja Savic
It's commented line inside the function called only once inside constructor, and never again :) On Tue, Apr 15, 2014 at 4:21 PM, Mike Jameson wrote: > The '(65)' looks to be the line number where the error occured. Notice > that previously the line number was '(62)' which probably means that t

Re: [Discuss-gnuradio] catching unrecognized exception

2014-04-15 Thread Mike Jameson
The '(65)' looks to be the line number where the error occured. Notice that previously the line number was '(62)' which probably means that the error is coming from line 65 of one of the files you have been editing. Mike -- Mike Jameson M0MIK BSc MIET Email: m...@scanoo.com Web: http://scanoo.co

Re: [Discuss-gnuradio] catching unrecognized exception

2014-04-15 Thread Nemanja Savic
Hi again, so, the exception appeared again. Just to remind: thread[thread-per-block[0]: ]: caught unrecognized exception I can't find what (65) means. This time complete block of code was encapsulated by try and except but nothing was caught. Here is my code: def handle_msg(self, msg):

Re: [Discuss-gnuradio] catching unrecognized exception

2014-03-20 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Nemanja, your except syntax is wrong, most probably you wanted to use "except ExceptionType as e" instead, refer to http://docs.python.org/2/tutorial/errors.html Anyway, have you tried surrounding all your handler code with a try and catch not onl

Re: [Discuss-gnuradio] catching unrecognized exception

2014-03-20 Thread Nemanja Savic
Dear gnuradioers, I would like to ask againi if somebody can help me understand this: thread[thread-per-block[0]: ]: caught unrecognized exception I have two blocks of db_logger type and it looks like only one catch this unrecognized exception and another keeps working fine. best and thank you

[Discuss-gnuradio] catching unrecognized exception

2014-03-03 Thread Nemanja Savic
Hi all guys, I have a block which is responsible to receive certain messages from other blocks and to write the data from the message into database. Sometimes the following exception occures and the block stops writing into database: thread[thread-per-block[0]: ]: caught unrecognized exception T