Skip to content

Commit

Permalink
MAINT: general bug fix for existing path across OS
Browse files Browse the repository at this point in the history
  • Loading branch information
lacabra authored Mar 22, 2018
1 parent 9eb6493 commit b7779cf
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions catalyst/marketplace/marketplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,12 +430,8 @@ def process_temp_bundle(self, ds_name, path):
merge_bundles(zsource, ztarget)

else:
try:
os.rename(tmp_bundle, bundle_folder)
except WindowsError:
shutil.rmtree(bundle_folder)
os.rename(tmp_bundle, bundle_folder)
pass
shutil.rmtree(bundle_folder, ignore_errors=True)
os.rename(tmp_bundle, bundle_folder)

def ingest(self, ds_name=None, start=None, end=None, force_download=False):

Expand Down Expand Up @@ -595,7 +591,6 @@ def clean(self, ds_name=None, data_frequency=None):
folder = get_bundle_folder(ds_name, data_frequency)

shutil.rmtree(folder)
pass

def create_metadata(self, key, secret, ds_name, data_frequency, desc,
has_history=True, has_live=True):
Expand Down

0 comments on commit b7779cf

Please sign in to comment.