Skip to content

Commit 5136023

Browse files
committed
catch error fixing
1 parent 1adc392 commit 5136023

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

qiita_db/test/test_analysis.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,10 @@ def test_retrieve_dropped_samples(self):
196196
"(1,2,'2.SKB8.640193'), (1,2,'2.SKD8.640184'), "
197197
"(1,2,'2.SKB7.640196')")
198198
except Exception as e:
199-
move(join(mp, "2_2_study_1001_closed_reference_otu_table.biom"),
200-
join(mp, "2_study_1001_closed_reference_otu_table.biom"))
199+
sec_fp = join(mp, "2_2_study_1001_closed_reference_otu_table.biom")
200+
if exists(sec_fp):
201+
move(sec_fp,
202+
join(mp, "2_study_1001_closed_reference_otu_table.biom"))
201203
raise RuntimeError(e)
202204

203205
try:

0 commit comments

Comments
 (0)