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
@@ -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('&')[2:], '')
see this emesene bug as an example: https://github.com/emesene/emesene/issues/462
Fixed in master. Thanks.