| Summary: | Yet another exception with bad profile and content roaming | ||
|---|---|---|---|
| Product: | papyon | Reporter: | Riccardo (c10ud) <c10ud.dev> |
| Component: | general | Assignee: | papyon-bugs |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | git master | ||
| Hardware: | Other | ||
| OS: | All | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
see this emesene bug as an example: https://github.com/emesene/emesene/issues/462 Fixed in master. Thanks. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
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:], '')