Skip to content
Snippets Groups Projects

The get/pop CA method cause exception if looked for component is missing

Merged Tomasz Bold requested to merge tbold/athena:make-get-mehhods-fail-when-missing into master

Functionality added by this MR is related to new/CA JO. The CAs can be queried for components (i.e. public tools). Typically when no object is found this means a mistake (typo in the name for instance). With this change, such a mistake would result in an exception being raised. This is the default behaviour. In cases when it is actually possible that the component is missing additional option can be provided: acceptAbsent. Then client code can check if the returned value is None and act accordingly.

Tagging @wlampl @mhodgkin @emoyse @goetz @fwinkl @rbielski PS> Launching all unit tests to catch possible mistakes in all areas.

Edited by Tomasz Bold

Merge request reports

Pipeline #3177448 failed

Pipeline failed for 33eeeeed on tbold:make-get-mehhods-fail-when-missing

Approval is optional

Merged by Adam Edward BartonAdam Edward Barton 3 years ago (Oct 29, 2021 11:20am UTC)

Merge details

  • Changes merged into master with 2408862a (commits were squashed).
  • Did not delete the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading