Fix ignoring error in exception dialog.

Before the whole exception with traceback and variables was used to
check uniqueness. Now just use traceback.