From 14a74292235523c4779d44c4e2f79d54e9fc4498 Mon Sep 17 00:00:00 2001 From: Maran Date: Mon, 18 Feb 2013 23:45:27 +0100 Subject: [PATCH] Tweaked the migration a bit --- lib/util.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/util.py b/lib/util.py index 214ecbf2..07c6972e 100644 --- a/lib/util.py +++ b/lib/util.py @@ -80,8 +80,11 @@ def check_windows_wallet_migration(): sys.exit() QMessageBox.information(None, _("Folder migration"), _("This version of Electrum moved the Electrum folder on windows from %s to %s, your Electrum folder will now be moved.") % (os.environ["LOCALAPPDATA"], os.environ["APPDATA"])) - shutil.move(os.path.join(os.environ["LOCALAPPDATA"], "Electrum"), os.path.join(os.environ["APPDATA"], "Electrum")) - QMessageBox.information(None,_("Migration status"), _("Your wallet has been moved sucessfully.")) + try: + shutil.move(os.path.join(os.environ["LOCALAPPDATA"], "Electrum"), os.path.join(os.environ["APPDATA"])) + QMessageBox.information(None,_("Migration status"), _("Your wallet has been moved sucessfully.")) + except: + QMessageBox.information(None,_("Migration status"), _("Failed to move your wallet"))