[Papyon-bugs] [Bug 36655] New: Yet another exception with bad profile and content roaming

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 28 05:28:28 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=36655

           Summary: Yet another exception with bad profile and content
                    roaming
           Product: papyon
           Version: git master
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: papyon-bugs at lists.freedesktop.org
        ReportedBy: c10ud.dev at gmail.com


This can happen if the user has a really bad profile.
The fix is to tell the user to fix his/her/its profile, but to prevent the
eventual exception a tiny diff is necessary.


diff --git a/papyon/service/ContentRoaming/storage.py
b/papyon/service/ContentRoaming/storage.py
index 908056f..6c79cba 100644
--- a/papyon/service/ContentRoaming/storage.py
+++ b/papyon/service/ContentRoaming/storage.py
@@ -145,7 +145,8 @@ class Storage(SOAPService):
         def request_static_tile(error, *args):
             # Request using the PreAuthURL didn't work, try with static
tilephoto
             scheme, host, port, resource = url_split(user_tile_url)
-            self.get_resource(scheme, host, resource, callback, errback)
+            if host:
+                self.get_resource(scheme, host, resource, callback, errback)

         scheme, host, port, resource = url_split(pre_auth_url)
         resource += '?t=' + urllib.quote(token.split('&')[0][2:], '')

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the papyon-bugs mailing list