re-type commited on
Commit
291422a
·
verified ·
1 Parent(s): 14ac608

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 e: # Fixed bare 'except'
245
- logger.warning(f"Failed to clean up {query_fasta}: {e}")
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: