xml.parsers.expat.ExpatError: not well-formed (invalid token)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
heybuddy |
New
|
Undecided
|
Unassigned |
Bug Description
had a crash in heybuddy
nothing else investigated, just reporting so more data can be added in future investigations
(didn't find bug via search)
used versions:
**************
heybuddy 0.2.5
Python 2.7.5+
GTK 2.24.20
PyGTK: 2.24.0
from terminal:
**************
key exceptions settings : initial_dents
key exceptions settings : pull_time
key exceptions settings : link_color
Traceback (most recent call last):
File "heybuddy.py", line 965, in process_statusesXML
statuses = self.xmlprocess
File "/home/
dom = parseString(text)
File "/usr/lib/
return expatbuilder.
File "/usr/lib/
return builder.
File "/usr/lib/
parser.
xml.parsers.
Can you edit the XMLProcessor.py file to dump the XML that is causing the issue?
Something like the following should do the trick re_server_ sub = re.compile( r'/\w+$ ') r'[+|-] [0-9]{4} ') self,text, is_direct= False): 'direct_ message'
=== modified file 'XMLProcessor.py'
--- XMLProcessor.py 2013-11-28 03:46:50 +0000
+++ XMLProcessor.py 2014-05-06 00:32:26 +0000
@@ -15,7 +15,10 @@
self.
self.re_zone = re.compile(
def get_statuses(
- dom = parseString(text)
+ try:
+ dom = parseString(text)
+ except:
+ print text
if is_direct:
tag=
else: