Skip to content

Commit

Permalink
Handling return code better.
Browse files Browse the repository at this point in the history
  • Loading branch information
theypsilon committed Jun 20, 2023
1 parent ae1992c commit 7484425
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/downloader/full_run_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ def _full_run_impl(self):
if self._config[K_UPDATE_LINUX]:
self._linux_updater.update_linux(importer_command)

if self._config[K_FAIL_ON_FILE_ERROR] and len(self._online_importer.files_that_failed()) > 0:
if self._config[K_FAIL_ON_FILE_ERROR] and (len(self._online_importer.files_that_failed()) + len(self._online_importer.folders_that_failed())) > 0:
self._logger.debug('Length of files_that_failed: %d' % len(self._online_importer.files_that_failed()))
self._logger.debug('Length of folders_that_failed: %d' % len(self._online_importer.folders_that_failed()))
self._logger.debug('Length of failed_dbs: %d' % len(failed_dbs))
return 1

Expand Down

0 comments on commit 7484425

Please sign in to comment.