diff --git a/server/src/uds/services/OpenGnsys/og/__init__.py b/server/src/uds/services/OpenGnsys/og/__init__.py index 2a22a07c..05529151 100644 --- a/server/src/uds/services/OpenGnsys/og/__init__.py +++ b/server/src/uds/services/OpenGnsys/og/__init__.py @@ -73,7 +73,7 @@ def ensureResponseIsValid(response, errMsg=None): err = response.json()['message'] # Extract any key, in case of error is expected to have only one top key so this will work except Exception: err = response.content - errMsg = '{}: {}, ({})'.format(errMsg, err, response.code) + errMsg = '{}: {}, ({})'.format(errMsg, err, response.status_code) logger.error('{}: {}'.format(errMsg, response.content)) raise Exception(errMsg)