Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/t/0/t0mm0-xbmc-plugins-HEAD/plugin.audio.subsonic/resources/lib/Subsonic/Subsonic.py   t0mm0-xbmc-plugins(Download)
                json_response = json.loads(response.read())
            except ValueError:
                Addon.show_error([Addon.get_string(30002)])
                return False
        except urllib2.URLError, e:
            Addon.show_error([Addon.get_string(30001), str(e.reason)])
            return payload
        else:
            Addon.show_error([payload['error']['message'], 
                       'json version: ' + payload['version']])  
            return False 

src/t/0/t0mm0-xbmc-plugins-HEAD/plugin.audio.8tracks/resources/lib/eighttracks.py   t0mm0-xbmc-plugins(Download)
                json_response = json.loads(response.read())
            except ValueError:
                Addon.show_error([Addon.get_string(30005)])
                return False
        except urllib2.URLError, e:
            Addon.show_error([Addon.get_string(30006), str(e.reason)])
            return False
 
        if json_response.get('errors', None):              
            Addon.show_error(str(json_response['errors'][0]))