[Pkg-sugar-commit] [sugar-browse-activity] 10/18: fix error writing file if there are not a url in the location bar
Jonas Smedegaard
dr at jones.dk
Mon Apr 20 09:47:13 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 108.1
in repository sugar-browse-activity.
commit dbdd9dc72d7c0462fddc95324e7213fe10d5c2ec
Author: Gonzalo Odiard <godiard at sugarlabs.org>
Date: Tue Oct 19 09:36:18 2010 -0300
fix error writing file if there are not a url in the location bar
---
browser.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/browser.py b/browser.py
index 3781e2e..0f3f51c 100644
--- a/browser.py
+++ b/browser.py
@@ -176,6 +176,8 @@ class Browser(WebView):
"""
get a nsIURI object and return a string with the url
"""
+ if uri == None:
+ return ''
cls = components.classes['@mozilla.org/intl/texttosuburi;1']
texttosuburi = cls.getService(interfaces.nsITextToSubURI)
return texttosuburi.unEscapeURIForUI(uri.originCharset, uri.spec)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-browse-activity.git
More information about the pkg-sugar-commit
mailing list