Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pyDKB/cds: more accurate handling of
with...as
There`s no guarantee that after `with...as` clause the main program is immediately goes to its end, so we need to propagate all the exceptions, including KeyboardInterrupt. As we exit the `with...as` clause, we need to destroy the browser process. If there was an exception propagated, `__del__()` method is not called (at least before the end of the main program), so we need call `delete()` manually. To ensure that phantomjs received the SIGTERM, we send it manually in the `delete()`. It doesn`t seem to help with Issue #45, however.
- Loading branch information