SystemError in weakrefobject.c
Etienne Labuschagne
elabuschagne at gmsonline.co.za
Tue Apr 8 09:16:45 EDT 2003
Hi all,
I have a block of code within a try except that does message parsing
work. This block of code is never supposed to fail, it must log the error,
reject the message which caused the parsing to fail and continue. So, I
catch all exceptions, log the error and continue normally with the rest of
the messages.
I am however getting SystemErrors which seems to go past the except and
then crashes the thread. In fact, it not only crashes the thread, but the
whole program.
Looking at the exception, it seems something more serious is happening and
I can't figure out what is wrong. Here are two of the exceptions which I
have logged so far:
Traceback (most recent call last):
File "C:\!Projects\Python\GlobalTrack\MessageDecoders.py", line 743, in decode
'\n'.join(['%s = %s' %(k,dict[k]) for k in dict.keys()])))
SystemError:
D:\trentm\as\Apps\ActivePython-2_2\src\Core\Objects\weakrefobject.c:690:
bad argument to internal function
and
Traceback (most recent call last):
File "C:\!Projects\Python\GlobalTrack\MessageDecoders.py", line 80, in __call__
return self.decode()
File "C:\!Projects\Python\GlobalTrack\MessageDecoders.py", line 344, in decode
cannedId = int(self._destinationAddress)
SystemError:
D:\trentm\as\Apps\ActivePython-2_2\src\Core\Objects\weakrefobject.c:690:
bad argument to internal function
Any help would be greatly appreciated.
Thanks
Etienne
More information about the Python-list
mailing list