Closed (fixed)
Project:
NSW Point API
Version:
1.0.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2022 at 00:57 UTC
Updated:
22 Sep 2023 at 01:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
eric115 commentedPatch to update ApiClient constructor and associated service definition.
I thought about throwing an exception in the constructor, but I think it might be better to allow it to be instantiated without an API key and to just let requests fail so that this doesn't break any existing uses of this module where an API key might not be set.
Comment #3
mortim07 commented@Eric115 Great pick up.
Comment #4
mortim07 commented@Eric115 I'd rather a custom exception be thrown within the constructor - the exception should reside under nsw_point_api and be something like InexistentKey.
Comment #5
mortim07 commentedComment #6
gordon commentedReroll the patch
Comment #7
mortim07 commentedClosed as part of https://git.drupalcode.org/project/nsw_point_api/-/merge_requests/3