It won't catch `KeyboardInterrupt` since it's not a subclass of `Exception` but of `BaseException`. The only new exception it catches is `StopIteration` which is probably ok. See the exception class hierarches of [py2](http://docs.python.org/2/library/exceptions.html#exception-hierarchy) and [py3](http://docs.python.org/3/library/exceptions.html#exception-hierarchy). But anyway the module is not imported at all in py3 since `logging.config,dictConfig` is in the stdlib.