diff --git a/src/hub/dataload/sources/pubchem/pubchem_dump.py b/src/hub/dataload/sources/pubchem/pubchem_dump.py index 419f277..7cf67ee 100644 --- a/src/hub/dataload/sources/pubchem/pubchem_dump.py +++ b/src/hub/dataload/sources/pubchem/pubchem_dump.py @@ -63,8 +63,6 @@ def post_dump(self, *args, **kwargs): '''Validate downloaded files''' self.logger.debug("Start validating downloaded files...") cmd = shutil.which('md5sum') - if not cmd: - raise OSError('"md5sum" is not found in the PATH!') if cmd: old = os.path.abspath(os.curdir) os.chdir(self.new_data_folder) @@ -81,3 +79,5 @@ def post_dump(self, *args, **kwargs): self.logger.debug("All %s files are validated.", len(md5_files)) finally: os.chdir(old) + else: + self.logger.warning('"md5sum" is not found in the PATH! File validation is skipped.')