Skip to content

Commit

Permalink
Added warning message if we try to get dependencies if Artella Drive …
Browse files Browse the repository at this point in the history
…Client is not available
  • Loading branch information
tpoveda committed Feb 4, 2021
1 parent 583af7b commit 8b5e521
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions artella/plugins/getdependencies/getdependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from artella import dcc, api
from artella.core.dcc import parser
from artella.core import plugin, utils, downloader
from artella.core import plugin, qtutils, utils, downloader
from artella.plugins.getdependencies.widgets import listdialog, outputdialog

logger = logging.getLogger('artella')
Expand Down Expand Up @@ -124,7 +124,11 @@ def get_non_available_dependencies(self, file_path=None, show_dialogs=True):
if not self.is_loaded():
return non_available_deps

if not api.is_client_available():
if not api.is_client_available(update=True):
msg = 'Local Artella Drive is not available. Please launch Artella Drive App.'
if show_dialogs:
api.show_warning_message(msg, title='Impossible to Get Dependencies')
logger.warning('Local Artella Drive is not available. Please launch Artella Drive App.')
return non_available_deps

if not file_path:
Expand Down

0 comments on commit 8b5e521

Please sign in to comment.