FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

printer client aborts on placeholder

Merged Andrew Vella requested to merge 15-throw-error-on-placeholder into main
4 files
+ 21
21
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -38,17 +38,11 @@ def main():
settings = load_settings(opts['--config'])
if not all([
settings.get('API_GATEWAY_ACCESS_CLIENT_KEY'),
settings.get('API_GATEWAY_ACCESS_CLIENT_SECRET')
]):
raise RuntimeError("Please set API key and secret in config.yml")
card_client = CardRequestClient(
settings.get('API_GATEWAY_ACCESS_CLIENT_KEY'),
settings.get('API_GATEWAY_ACCESS_CLIENT_SECRET'),
settings.get('API_GATEWAY_ACCESS_TOKEN_URL', 'https://api.apps.cam.ac.uk/oauth2/v1/token'), # noqa: E501
settings.get('CARD_API_BASE_URL', 'https://api.apps.cam.ac.uk/card'),
settings.get('API_GATEWAY_ACCESS_TOKEN_URL'),
settings.get('CARD_API_BASE_URL'),
settings.get('CARD_API_INSTITUTION_FILTER', None)
)
Loading