This logging was apparently broken when sorting imports; it's a fairly unique thing in our codebase that this would be a problem. Prevent future regressions by adding this exception explicitly to the isort configuration.
Commit msg tweaked by rht. Based on https://github.com/zulip/zulip/pull/3318. Content tweaked by tabbott.