diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b8a35ae..da15e365 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [0.9.6] 2020 +### Fixes +- Web + - handling unexpected connection errors + ## [0.9.5] 2020-06-07 ### Features - new custom action (**+**) to open the system backups (snapshots). It is just a shortcut to Timeshift. diff --git a/bauh/__init__.py b/bauh/__init__.py index 3589bf38..0fc6cee2 100644 --- a/bauh/__init__.py +++ b/bauh/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.9.5' +__version__ = '0.9.6' __app_name__ = 'bauh' import os diff --git a/bauh/gems/web/controller.py b/bauh/gems/web/controller.py index 133ea35b..e6e726a7 100644 --- a/bauh/gems/web/controller.py +++ b/bauh/gems/web/controller.py @@ -838,7 +838,10 @@ class WebApplicationManager(SoftwareManager): if not app.description: app.description = self._get_app_description(app.url, soup) - find_url = not app.icon_url or (app.icon_url and not self.http_client.exists(app.icon_url, session=False)) + try: + find_url = not app.icon_url or (app.icon_url and not self.http_client.exists(app.icon_url, session=False)) + except (requests.exceptions.ConnectionError, requests.exceptions.ConnectTimeout): + find_url = None if find_url: app.icon_url = self._get_app_icon_url(app.url, soup)