Skip to content

Commit

Permalink
remove existing sql file in temp folder to resolve issue
Browse files Browse the repository at this point in the history
  • Loading branch information
saapooch committed Oct 16, 2018
1 parent 98cf284 commit 559ced1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datanator/core/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ def upload_backup(self):

# copy new files to package
path = self._get_dump_path()
# os.symlink(os.path.join(self.cache_dirname, path), os.path.join(tmp_dirname, path))
if os.path.exists(os.path.join(tmp_dirname, path)):
os.remove(os.path.join(tmp_dirname, path))
os.symlink(os.path.join(self.cache_dirname, path), os.path.join(tmp_dirname, path))

# build and push package
manager.upload()
Expand Down

0 comments on commit 559ced1

Please sign in to comment.