← Back to team overview

ubuntu-bugcontrol team mailing list archive

[Bug 523964] Re: gwibber crashed with AttributeError in __init__()

 

*** This bug is a duplicate of bug 522538 ***
    https://bugs.launchpad.net/bugs/522538

I had the same issue as #16 - last lines of the trace:
    accounts=accounts)
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 284, in render
    self.load_html_string(content, "file://%s/" % os.path.dirname(template_path))
TypeError: WebKitWebView.load_html_string() argument 1 must be string without null bytes, not str


The issue is var "content" in the line 284 has null:
    self.load_html_string(content, "file://%s/" % os.path.dirname(template_path))

I edited /usr/lib/python2.6/dist-packages/gwibber/gwui.py and added a line before line 284 to strip the nulls and that fixed this issue:
content = content.replace("\0","")

I don't know python but I know programming :-) - probably this is fine.

Hari Gangadharan

** Patch added: "Added striping of nulls from content"
   http://launchpadlibrarian.net/50043421/gwui.diff

-- 
gwibber crashed with AttributeError in __init__()
https://bugs.launchpad.net/bugs/523964
You received this bug notification because you are a member of Ubuntu
Bug Control, which is a direct subscriber.