Closed duboism closed 4 years ago
This PR corrects 2 bugs in IRODSDownload:
ExceptionIRODS
With those modifications trying to download a non-existent file (as below) is correctly detected (i.e. it raise a BioMAJ exception):
from biomaj_download.download.protocolirods import IRODSDownload irodsd = IRODSDownload("localhost", "/tempZone/home/rods") irodsd.set_options(dict(skip_check_uncompress=True)) irodsd.set_param(dict( user='rods', password='rods', )) # Download a fake file irodsd.set_files_to_download([ {'name': 'TOTO.zip', 'year': 2016, 'month': 2, 'day': 19, 'size': 1, 'save_as': 'TOTO1KB'} ]) irodsd.download("/tmp")
Without them, this code triggers iRODS errors.
This PR corrects 2 bugs in IRODSDownload:
ExceptionIRODS
class and not iRODS' exceptions).With those modifications trying to download a non-existent file (as below) is correctly detected (i.e. it raise a BioMAJ exception):
Without them, this code triggers iRODS errors.