def _saveWallet(self, wallet: Wallet, contextDir, walletName=None): try: fileName = normalizedWalletFileName(walletName or wallet.name) walletFilePath = saveGivenWallet(wallet, fileName, contextDir) self.logger.info('Active keyring "{}" saved ({})'.format( self._wallet.name, walletFilePath)) except IOError as ex: self.logger.info( "Error occurred while saving wallet. " + "error no.{}, error.{}".format(ex.errno, ex.strerror))
def _saveWallet(self, wallet: Wallet, contextDir, walletName=None): try: walletName = walletName or wallet.name fileName = normalizedWalletFileName(walletName) walletFilePath = saveGivenWallet(wallet, fileName, contextDir) self.logger.info('Active keyring "{}" saved ({})'. format(walletName, walletFilePath)) except IOError as ex: self.logger.info("Error occurred while saving wallet. " + "error no.{}, error.{}" .format(ex.errno, ex.strerror))