display error details for unexpected errors

This commit is contained in:
Riccardo Spagni 2015-01-18 13:48:28 +02:00
parent 038c57994f
commit f71dd322dd
1 changed files with 2 additions and 2 deletions

View File

@ -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: