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

cleanupProlog may try to convert generator to int #98

Open
wvxvw opened this issue Jul 13, 2020 · 0 comments
Open

cleanupProlog may try to convert generator to int #98

wvxvw opened this issue Jul 13, 2020 · 0 comments

Comments

@wvxvw
Copy link

wvxvw commented Jul 13, 2020

If the results of the last Prolog.query() call aren't consumed, then the _hook.exit_code will be a generator object. Converting it to an int will fail.

I think, the better way to deal with this is to check if the exit_code is a generator, and if so, warn the users about not executing all of the code they queried.

I'm talking about the file core.py, line 1358 in my version.

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

No branches or pull requests

1 participant