Broadened 'except' clause to prevent error handler from crashing

I also refactored an obsolete function definition into inline code.
Check https://github.com/vikingco/django-progress/pull/5. I've marked it with a WIP tag in case you have additional suggestions, so I'll be waiting for your squirrel before removing the tag.