Skip to content
Snippets Groups Projects
Commit 40e2edfa authored by felmer's avatar felmer
Browse files

SSDM-4187: Fixing bug for the case that getServerInformation() returns an empty map.

SVN: 37673
parent 4f0c1a9d
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ def create_experiment_if_needed(transaction): ...@@ -44,7 +44,7 @@ def create_experiment_if_needed(transaction):
def create_plate_if_needed(transaction): def create_plate_if_needed(transaction):
""" Get the specified sample or register it if necessary """ """ Get the specified sample or register it if necessary """
if transaction.serverInformation['project-samples-enabled'] == 'true': if transaction.serverInformation.get('project-samples-enabled') == 'true':
plate_id = PLATE_ID_WITH_PROJECT plate_id = PLATE_ID_WITH_PROJECT
else: else:
plate_id = PLATE_ID plate_id = PLATE_ID
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment