Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
luciansmith committed Oct 29, 2024
1 parent dda35bb commit d5a8f94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions biosimulators_masspy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ def preprocess_sed_task(task, variables, config=None):
if sbml_id in met_ids:
try:
model_change_target_mass_map[target] = (mass_model.metabolites[met_ids.index(sbml_id)], 'ic')
except:
#If the id has a "M_" in front of it:
except IndexError:
# If the id has a "M_" in front of it:
model_change_target_mass_map[target] = (mass_model.metabolites[met_ids.index(sbml_id) - len(mass_model.metabolites)], 'ic')

elif sbml_id in sbml_id_mass_parameter_map:
Expand Down

0 comments on commit d5a8f94

Please sign in to comment.