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

Handling Ctrl-C #3

Open
AdrieanKhisbe opened this issue Sep 20, 2017 · 1 comment
Open

Handling Ctrl-C #3

AdrieanKhisbe opened this issue Sep 20, 2017 · 1 comment

Comments

@AdrieanKhisbe
Copy link

I tried to use it on a script fetching data in database, and decided to give up the call since taking so long.
However I cannot terminate the program anymore. :/

Traceback (most recent call last):
  File "generate_indicators_datasets.py", line 52, in <module>
file_name = sys.argv[1] if len(sys.argv) > 1 else "generated-dataset.csv"
  File "generate_indicators_datasets.py", line 20, in generate_datasets
    indicators = []
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2645, in all
    return list(self)
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 75, in instances
    rows = [proc(row) for row in fetch]
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 437, in _instance
    loaded_instance, populate_existing, populators)
  File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 497, in _populate_full
    for key, getter in populators["quick"]:
KeyboardInterrupt
⠋ Fetching User in the database
@AdrieanKhisbe
Copy link
Author

(up?)

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