1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 09:46:25 +00:00

Dropping unnecessary debug

This commit is contained in:
Paweł Jastrzębski
2014-01-16 13:56:37 +01:00
parent f12361e7cf
commit 0f44629273
3 changed files with 1 additions and 6 deletions

View File

@@ -289,7 +289,6 @@ class KindleUnpackThread(QtCore.QRunnable):
open(mobiPath, 'wb').write(mobisplit.getResult())
self.signals.result.emit([True])
except Exception as err:
traceback.print_exc()
self.signals.result.emit([False, format(err)])
@@ -729,7 +728,6 @@ class KCCGUI(KCC_ui.Ui_KCC):
GUI.QualityBox.setChecked(False)
GUI.MangaBox.setEnabled(False)
GUI.MangaBox.setChecked(False)
self.addMessage('If images will be too dark after conversion: Set <i>Gamma</i> to 1.0.', 'info')
else:
if not GUI.ProcessingBox.isChecked():
GUI.NoRotateBox.setEnabled(True)

View File

@@ -83,7 +83,6 @@ class CBxArchive:
raise OSError
def extract(self, targetdir):
print("\n" + targetdir + "\n")
if self.compressor == 'rar':
self.extractCBR(targetdir)
elif self.compressor == 'zip':

View File

@@ -414,8 +414,6 @@ def fileImgProcess(work):
applyImgOptimization(img2, opt, img)
img2.saveToDir(dirpath, opt.forcepng, opt.forcecolor, True)
except Exception:
import traceback
traceback.print_tb(sys.exc_info()[2])
return str(sys.exc_info()[1])
@@ -1081,4 +1079,4 @@ def checkOptions():
(int(X*1.5), int(Y*1.5)))
image.ProfileData.Profiles["Custom"] = newProfile
options.profile = "Custom"
options.profileData = image.ProfileData.Profiles[options.profile]
options.profileData = image.ProfileData.Profiles[options.profile]