Ran Pycharm debug which ended with exit code -1 You may be seeing that exit code because of a bug in PyCharm.