mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 16:44:16 +02:00
[wgem] filling preset app options
This commit is contained in:
@@ -10,6 +10,7 @@ from threading import Thread
|
||||
import requests
|
||||
|
||||
from bauh.api.http import HttpClient
|
||||
from bauh.commons import internet
|
||||
from bauh.gems.appimage import LOCAL_PATH
|
||||
|
||||
|
||||
@@ -73,7 +74,8 @@ class DatabaseUpdater(Thread):
|
||||
if self.enabled:
|
||||
while True:
|
||||
try:
|
||||
self._download_databases()
|
||||
if internet.is_available(self.http_client, self.logger):
|
||||
self._download_databases()
|
||||
except requests.exceptions.ConnectionError:
|
||||
self.logger.warning('The internet connection seems to be off.')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user