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

refactor: better error messages for non-existent attributes #773

Merged
merged 2 commits into from
May 11, 2024

Conversation

szhorvat
Copy link
Member

See #772 for the motivation. Tested manually:

>>> import igraph as ig
>>> ig.Graph([(0,1)]).layout_bipartite()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/szhorvat/miniconda3/envs/igdev/lib/python3.11/site-packages/igraph/layout.py", line 691, in result
    layout = func(*args, **kwds)
             ^^^^^^^^^^^^^^^^^^^
igraph._igraph.InternalError: Error at src/_igraph/attributes.c:1701: No vertex attribute named "type" exists. -- Invalid value

@ntamas ntamas merged commit d2674c9 into main May 11, 2024
22 checks passed
@ntamas ntamas deleted the refactor/better-attribute-errors branch May 11, 2024 01:06
@ntamas
Copy link
Member

ntamas commented May 11, 2024

Thanks!

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