From 20333fc8e29559b09f7e1fc971039089aeba7867 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 20 Jun 2012 09:10:40 +0900 Subject: [PATCH] full stack trace on syncing error --- aqt/sync.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aqt/sync.py b/aqt/sync.py index 55f5b423a..620966d3b 100644 --- a/aqt/sync.py +++ b/aqt/sync.py @@ -265,6 +265,9 @@ class SyncThread(QThread): if "Unable to find the server" in err: self.fireEvent("offline") else: + err = traceback.format_exc() + if not isinstance(err, unicode): + err = unicode(err, "utf8", "replace") self.fireEvent("error", err) return if ret == "badAuth":