callowayproject/dashboardmods — pull request #7 by vdboor (2011-11-17 23:04:29+00:00)
Title: Fix Varnish / Python errors

Hi,

I've just added your dashboardmods to my admin panel, it's awesome!
I also experienced some errors with the Varnish status module, attached you'll find the fixes.

Briefly:
- The `cache_misses` and `cache_hits` keys did not exist until Varnish received a request, causing a KeyError.
- The `haskey()` function could not be found in Python 2.6
- The raised exception now contains the original stacktrace.

When these fixes are OK with you, feel free to pull them! :)

Greetings,
Diederik