exception not base exception

This commit is contained in:
Yostra 2020-09-08 20:40:24 -07:00 committed by Gene Hoffman
parent ac1a8665f0
commit 8adeb70328

View File

@ -353,7 +353,7 @@ class WalletRpcApi:
log.error("Failed to upload backup to wallet backup service")
elif success is True:
log.info("Finished upload of the backup file")
except BaseException as e:
except Exception as e:
log.error(f"Exception in upload backup. Error: {e}")
async def create_new_wallet(self, request):
@ -715,7 +715,7 @@ class WalletRpcApi:
backup_info = get_backup_info(backup_path, private_key)
backup_info["backup_host"] = recovery_host
backup_info["downloaded"] = True
except BaseException as e:
except Exception as e:
log.error(f"error {e}")
response = {"success": False, "error": "not_initialized"}
if backup_info is not None: