diff --git a/tom_dataproducts/forced_photometry/atlas.py b/tom_dataproducts/forced_photometry/atlas.py index 96b478d0a..5447e7807 100644 --- a/tom_dataproducts/forced_photometry/atlas.py +++ b/tom_dataproducts/forced_photometry/atlas.py @@ -109,15 +109,15 @@ def query_service(self, query_parameters): if not Target.objects.filter(pk=query_parameters.get('target_id')).exists(): raise fps.ForcedPhotometryServiceException(f"Target {query_parameters.get('target_id')} does not exist") - if 'atlas' not in settings.FORCED_PHOTOMETRY_SERVICES: - raise fps.ForcedPhotometryServiceException("Must specify 'atlas' settings in FORCED_PHOTOMETRY_SERVICES") - if not settings.FORCED_PHOTOMETRY_SERVICES.get('atlas', {}).get('url'): + if 'ATLAS' not in settings.FORCED_PHOTOMETRY_SERVICES: + raise fps.ForcedPhotometryServiceException("Must specify 'ATLAS' settings in FORCED_PHOTOMETRY_SERVICES") + if not settings.FORCED_PHOTOMETRY_SERVICES.get('ATLAS', {}).get('url'): raise fps.ForcedPhotometryServiceException( - "Must specify a 'url' under atlas settings in FORCED_PHOTOMETRY_SERVICES" + "Must specify a 'url' under ATLAS settings in FORCED_PHOTOMETRY_SERVICES" ) - if not settings.FORCED_PHOTOMETRY_SERVICES.get('atlas', {}).get('api_key'): + if not settings.FORCED_PHOTOMETRY_SERVICES.get('ATLAS', {}).get('api_key'): raise fps.ForcedPhotometryServiceException( - "Must specify an 'api_key' under atlas settings in FORCED_PHOTOMETRY_SERVICES" + "Must specify an 'api_key' under ATLAS settings in FORCED_PHOTOMETRY_SERVICES" ) if 'django_dramatiq' in settings.INSTALLED_APPS: