{"action":"created","issue":{"url":"https://api.github.com/repos/peterbe/premailer/issues/207","repository_url":"https://api.github.com/repos/peterbe/premailer","labels_url":"https://api.github.com/repos/peterbe/premailer/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/peterbe/premailer/issues/207/comments","events_url":"https://api.github.com/repos/peterbe/premailer/issues/207/events","html_url":"https://github.com/peterbe/premailer/issues/207","id":380134192,"node_id":"MDU6SXNzdWUzODAxMzQxOTI=","number":207,"title":"Premailer tries download css ","user":{"login":"TZanke","id":1613368,"node_id":"MDQ6VXNlcjE2MTMzNjg=","avatar_url":"https://avatars1.githubusercontent.com/u/1613368?v=4","gravatar_id":"","url":"https://api.github.com/users/TZanke","html_url":"https://github.com/TZanke","followers_url":"https://api.github.com/users/TZanke/followers","following_url":"https://api.github.com/users/TZanke/following{/other_user}","gists_url":"https://api.github.com/users/TZanke/gists{/gist_id}","starred_url":"https://api.github.com/users/TZanke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TZanke/subscriptions","organizations_url":"https://api.github.com/users/TZanke/orgs","repos_url":"https://api.github.com/users/TZanke/repos","events_url":"https://api.github.com/users/TZanke/events{/privacy}","received_events_url":"https://api.github.com/users/TZanke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-13T09:33:36Z","updated_at":"2018-11-14T13:57:56Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nin our customer environments, internet access is not allowed, but Premailer tries to download css files and encounters an exception. I could no find any option to disable this feature.\r\n\r\n```\r\nFile \"premailer/premailer.py\", line 341, in transform  \r\n    css_body = self._load_external(href)\r\n\r\nFile \"premailer/premailer.py\", line 520, in _load_external\r\n    css_body = self._load_external_url(url)\r\n\r\nFile \"premailer/premailer.py\", line 507, in _load_external_url\r\n    return requests.get(url).text\r\n\r\nFile \"requests/api.py\", line 70, in get\r\n    return request('get', url, params=params, **kwargs)\r\n\r\nFile \"requests/api.py\", line 56, in request\r\n    return session.request(method=method, url=url, **kwargs)\r\n\r\nFile \"requests/sessions.py\", line 488, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n\r\nFile \"requests/sessions.py\", line 609, in send\r\n    r = adapter.send(request, **kwargs)\r\n\r\nFile \"requests/adapters.py\", line 487, in send\r\n    raise ConnectionError(e, request=request)\r\n\r\nConnectionError: HTTPSConnectionPool(host='fonts.googleapis.com', port=443): Max retries exceeded with url: /css?family=Open+Sans:300,400,600,700 (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fe912dcec10>: Failed to establish a new connection: [Errno 101] Das Netzwerk ist nicht erreichbar',))\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/peterbe/premailer/issues/comments/438670466","html_url":"https://github.com/peterbe/premailer/issues/207#issuecomment-438670466","issue_url":"https://api.github.com/repos/peterbe/premailer/issues/207","id":438670466,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODY3MDQ2Ng==","user":{"login":"peterbe","id":26739,"node_id":"MDQ6VXNlcjI2NzM5","avatar_url":"https://avatars2.githubusercontent.com/u/26739?v=4","gravatar_id":"","url":"https://api.github.com/users/peterbe","html_url":"https://github.com/peterbe","followers_url":"https://api.github.com/users/peterbe/followers","following_url":"https://api.github.com/users/peterbe/following{/other_user}","gists_url":"https://api.github.com/users/peterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbe/subscriptions","organizations_url":"https://api.github.com/users/peterbe/orgs","repos_url":"https://api.github.com/users/peterbe/repos","events_url":"https://api.github.com/users/peterbe/events{/privacy}","received_events_url":"https://api.github.com/users/peterbe/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T13:57:56Z","updated_at":"2018-11-14T13:57:56Z","author_association":"OWNER","body":"Ah! Like an option that says \"Don't ever bother doing any more downloads when you process this.\"\r\nYeah, that shouldn't be too hard. I won't make such a patch but I'd be more than willing to assist you in making the pull request. "}}
{"actor":{"display_login":"peterbe"}}