Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not print C errors by default #926

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

jesper-friis
Copy link
Collaborator

Description

Do not print C errors by default.

Also, avoid calling _dlite.errcheck() as the first thing in Instance.init() if SWIG doesn't generate a new() method.

Type of change

  • Bug fix & code cleanup
  • New feature
  • Documentation update
  • Test update

Checklist for the reviewer

This checklist should be used as a help for the reviewer.

  • Is the change limited to one issue?
  • Does this PR close the issue?
  • Is the code easy to read and understand?
  • Do all new feature have an accompanying new test?
  • Has the documentation been updated as necessary?

Also, avoid calling _dlite.errcheck() as the first thing in
Instance.__init__() if SWIG doesn't generate a __new__() method.
Copy link
Collaborator

@francescalb francescalb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

Co-authored-by: Francesca L. Bleken <48128015+francescalb@users.noreply.github.com>
@jesper-friis jesper-friis merged commit ae1cd1a into master Aug 15, 2024
14 checks passed
@jesper-friis jesper-friis deleted the do-not-print-c-errors-by-default branch August 15, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants