tabort if file exists - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 4068c4bbf2991e117702bc66eba3834f760305d4 DIR parent 353578986ab3760dfe21137e752a074f4932fed9 HTML Author: ThomasV <thomasv@gitorious> Date: Mon, 11 Nov 2013 19:05:32 +0100 abort if file exists Diffstat: M gui/qt/main_window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py t@@ -337,7 +337,9 @@ class ElectrumWindow(QMainWindow): filename = os.path.join(wallet_folder, filename) storage = WalletStorage({'wallet_path': filename}) - assert not storage.file_exists + if storage.file_exists: + QMessageBox.critical(None, "Error", _("File exists")) + return wizard = installwizard.InstallWizard(self.config, self.network, storage) wallet = wizard.run()