mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
print stderr before attempting thread operations
This commit is contained in:
parent
618bfe13e5
commit
3d1523527c
1 changed files with 6 additions and 1 deletions
|
@ -101,6 +101,7 @@ class AnkiQt(QMainWindow):
|
||||||
self.pool = ""
|
self.pool = ""
|
||||||
|
|
||||||
def write(self, data):
|
def write(self, data):
|
||||||
|
print data,
|
||||||
self.pool += data
|
self.pool += data
|
||||||
self.updateTimer()
|
self.updateTimer()
|
||||||
|
|
||||||
|
@ -122,7 +123,6 @@ An error occurred. Please copy the following into a bug report.\n\n""")
|
||||||
pluginText = _("""\
|
pluginText = _("""\
|
||||||
An error occurred in a plugin. Please contact the plugin author.
|
An error occurred in a plugin. Please contact the plugin author.
|
||||||
Please do not file a bug report with Anki.\n\n""")
|
Please do not file a bug report with Anki.\n\n""")
|
||||||
print self.pool
|
|
||||||
if "plugin" in self.pool:
|
if "plugin" in self.pool:
|
||||||
txt = pluginText
|
txt = pluginText
|
||||||
else:
|
else:
|
||||||
|
@ -1202,6 +1202,7 @@ Error was:\n%(f1)s\n...\n%(f2)s""") % {'f1': fmt1, 'f2': fmt2})
|
||||||
self.connect(self.syncThread, SIGNAL("openSyncProgress"), self.openSyncProgress)
|
self.connect(self.syncThread, SIGNAL("openSyncProgress"), self.openSyncProgress)
|
||||||
self.connect(self.syncThread, SIGNAL("closeSyncProgress"), self.closeSyncProgress)
|
self.connect(self.syncThread, SIGNAL("closeSyncProgress"), self.closeSyncProgress)
|
||||||
self.connect(self.syncThread, SIGNAL("updateSyncProgress"), self.updateSyncProgress)
|
self.connect(self.syncThread, SIGNAL("updateSyncProgress"), self.updateSyncProgress)
|
||||||
|
self.connect(self.syncThread, SIGNAL("bulkSyncFailed"), self.bulkSyncFailed)
|
||||||
self.syncThread.start()
|
self.syncThread.start()
|
||||||
self.showWelcomeScreen()
|
self.showWelcomeScreen()
|
||||||
self.setEnabled(False)
|
self.setEnabled(False)
|
||||||
|
@ -1278,6 +1279,10 @@ Error was:\n%(f1)s\n...\n%(f2)s""") % {'f1': fmt1, 'f2': fmt2})
|
||||||
else:
|
else:
|
||||||
self.syncProgressDialog.setLabelText("Downloading %s..." % fname)
|
self.syncProgressDialog.setLabelText("Downloading %s..." % fname)
|
||||||
|
|
||||||
|
def bulkSyncFailed(self):
|
||||||
|
ui.utils.showWarning(_(
|
||||||
|
"Failed to upload media. Please run 'check media db'."), self)
|
||||||
|
|
||||||
# Menu, title bar & status
|
# Menu, title bar & status
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue