Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -241,8 +241,8 @@ def phylogenetic_placement(sequence: str, mafft_cmd: str, iqtree_cmd: str):
|
|
| 241 |
if 'query_fasta' in locals() and os.path.exists(query_fasta):
|
| 242 |
try:
|
| 243 |
os.unlink(query_fasta)
|
| 244 |
-
except Exception as
|
| 245 |
-
logger.warning(f"Failed to clean up {query_fasta}: {
|
| 246 |
|
| 247 |
def analyze_sequence_for_tree(sequence: str, matching_percentage: float):
|
| 248 |
try:
|
|
|
|
| 241 |
if 'query_fasta' in locals() and os.path.exists(query_fasta):
|
| 242 |
try:
|
| 243 |
os.unlink(query_fasta)
|
| 244 |
+
except Exception as cleanup_error:
|
| 245 |
+
logger.warning(f"Failed to clean up {query_fasta}: {cleanup_error}")
|
| 246 |
|
| 247 |
def analyze_sequence_for_tree(sequence: str, matching_percentage: float):
|
| 248 |
try:
|