From f71dd322ddefdd75a7d768a44f383e0519c0761d Mon Sep 17 00:00:00 2001 From: Riccardo Spagni Date: Sun, 18 Jan 2015 13:48:28 +0200 Subject: [PATCH] display error details for unexpected errors --- plugins/openalias.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/openalias.py b/plugins/openalias.py index 3a80da62..bdaae463 100644 --- a/plugins/openalias.py +++ b/plugins/openalias.py @@ -196,8 +196,8 @@ class Plugin(BasePlugin): except DNSException: err = _('Unhandled exception.') continue - except: - err = _('Unknown error.') + except Exception,e: + err = _('Unexpected error: ' + str(e)) continue break if err: