regispietra / CreatePrivateEthereum

36 stars 16 forks source link

AttributeError: 'dict' object has no attribute 'has_key' #4

Open vporton opened 6 years ago

vporton commented 6 years ago
$ python3 ./pgeth.py init
Traceback (most recent call last):
  File "./pgeth.py", line 364, in <module>
    args.func(args)  # call the default function
  File "./pgeth.py", line 257, in init
    initAccount()
  File "./pgeth.py", line 210, in initAccount
    datadir = getDataDir()
  File "./pgeth.py", line 91, in getDataDir
    datadir = load_config_keys("datadir")
  File "./pgeth.py", line 85, in load_config_keys
    if d.has_key(key):
AttributeError: 'dict' object has no attribute 'has_key'

(on Debian Linux)