dimagi/dimagi-utils — pull request #186 by millerdev (2014-03-21 17:12:20+00:00)
Title: Use duck-typing to support Django debug toolbar

- `isinstance(rcache, RedisCache)` was failing because Django debug toolbar wraps the redis cache in a proxy class.
- Log the error before swallowing it.
- Do not catch unrecoverable exceptions like `KeyboardInterrupt` and `SystemExit`.