Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Correct custom fetch callback examples #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jchristgit
Copy link

The callback was previously erroring out because of this error:

  File "test.py", line 33, in my_callback
    'a': [math.sin(x / 200) for x in range(0, itemcount)],
                                     ^^^^^^^^^^^^^^^^^^^
TypeError: 'float' object cannot be interpreted as an integer

Unfortunately this is only visible if one wraps the function in a manual error handler (it just returns NULL in case it errors, apparently).
There was also a small typo with the callback name and the way the graphv args were passed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant