Merge pull request #347 from LucianU/patch-1

Printing the entire traceback, instead of just a warning, when an except...
This commit is contained in:
Kenneth Reitz
2012-01-10 11:08:53 -08:00
+3 -3
View File
@@ -22,7 +22,7 @@ Available hooks:
"""
import warnings
import traceback
def dispatch_hook(key, hooks, hook_data):
@@ -34,7 +34,7 @@ def dispatch_hook(key, hooks, hook_data):
try:
return hooks.get(key).__call__(hook_data) or hook_data
except Exception, why:
warnings.warn(str(why))
except Exception:
traceback.print_exc()
return hook_data