Running IMSClient.get_units with a tag that errors gives a bad error message

Open
#389 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start by reproducing the failure through IMSClient.get_units with a tag that produces the reported error, then trace where that error is surfaced. The work is done when an invalid tag is clearly identified in the user-facing error message and the existing behavior for valid tags remains intact.

Written by the indexing model from the issue text.

Description

bug

The error message seen in the picture below doesn't convey the meaning well enough. We need to add some good error handling so that the user can see that it was an invalid tag taht caused the error.

Image

Dominant language
Python
Stars
55
Forks
21
Avg merge
2d 5h
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from equinor/tagreader-python

All issues in equinor/tagreader-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.