electrum-ltc icon indicating copy to clipboard operation
electrum-ltc copied to clipboard

AttributeError: 'WalletStorage' object has no attribute 'db'

Open neyromanser opened this issue 6 years ago • 0 comments

Hello! After update to v 3.3.6.1, when making transaction from command line with payto method, I had this error: Traceback (most recent call last): File "/home/litecoin/_dev/electrum-ltc-3.3.6.1/electrum_ltc/electrum-ltc", line 412, in <module> init_cmdline(config_options, server) File "/home/litecoin/_dev/electrum-ltc-3.3.6.1/electrum_ltc/electrum-ltc", line 161, in init_cmdline or (cmd.requires_password and (storage.get('use_encryption') or storage.is_encrypted())): File "/home/litecoin/_dev/electrum-ltc-3.3.6.1/electrum_ltc/storage.py", line 83, in get return self.db.get(key, default) AttributeError: 'WalletStorage' object has no attribute 'db'

I fixed it by change code in run_electrum on line 161 from this: or (cmd.requires_password and (storage.get('use_encryption') or storage.is_encrypted())): to this one: or (cmd.requires_password and (storage.is_encrypted() or storage.get('use_encryption'))):

Now everything is fine, hope this will be useful.

neyromanser avatar Jun 11 '19 08:06 neyromanser