summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo (C10uD) <c10ud.dev@gmail.com>2011-05-02 17:28:10 +0200
committerRiccardo (C10uD) <c10ud.dev@gmail.com>2011-05-02 17:28:10 +0200
commite245c14582bb55a70a4e77754f859f3093979b09 (patch)
tree153af97fe3ef37509d01c30f51c56a5402a6d9a9
parent3245f3ac84acc1526df98672da6a26910906397e (diff)
Check for host being None when trying to retrieve the static tile photo. Fixes fd.o#36655
-rw-r--r--papyon/service/ContentRoaming/storage.py3
1 files changed, 2 insertions, 1 deletions
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:], '')