Skip to content

Commit

Permalink
Fixed bug described in issue #102
Browse files Browse the repository at this point in the history
  • Loading branch information
luissian committed Jun 9, 2022
1 parent 6c72374 commit 3f20835
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iSkyLIMS_core/utils/handling_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ def get_all_sample_information(sample_id, massive):
molecule_id=molecule, moleculeParameter_id=p_name
).get_param_value()
)
except:
except MoleculeParameterValue.DoesNotExist:
# if the parameter was not set at the time the molecule was handeled
mol_param_value.append("")

Expand Down
5 changes: 4 additions & 1 deletion iSkyLIMS_wetlab/utils/library_preparation.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,10 @@ def get_all_library_information(sample_id):
for p_name in parameter_names:
lib_prep_param_heading.append(p_name.get_parameter_name())
if LibParameterValue.objects.filter(library_id = library_item).exists():
lib_prep_param_value.append(LibParameterValue.objects.get(library_id = library_item, parameter_id = p_name).get_parameter_information())
try:
lib_prep_param_value.append(LibParameterValue.objects.get(library_id = library_item, parameter_id = p_name).get_parameter_information())
except LibParameterValue.DoesNotExist:
lib_prep_param_value.append("")
lib_prep_data.append(lib_prep_param_heading)
lib_prep_data.append(lib_prep_param_value)
else:
Expand Down

0 comments on commit 3f20835

Please # to comment.