No more crash when --web without twisted installed #3

This commit is contained in:
jackjack 2011-08-20 01:34:03 +02:00
parent 86c28873d0
commit 2d15ba037f

View File

@ -1921,15 +1921,16 @@ if __name__ == '__main__':
if 'ecdsa' in missing_dep: if 'ecdsa' in missing_dep:
print("'ecdsa' package is not installed, pywallet won't be able to sign/verify messages") print("'ecdsa' package is not installed, pywallet won't be able to sign/verify messages")
VIEWS = { if 'twisted' not in missing_dep:
'DumpWallet': WIDumpWallet(), VIEWS = {
'Import': WIImport(), 'DumpWallet': WIDumpWallet(),
'ImportTx': WIImportTx(), 'Import': WIImport(),
'DumpTx': WIDumpTx(), 'ImportTx': WIImportTx(),
'Info': WIInfo(), 'DumpTx': WIDumpTx(),
'Delete': WIDelete(), 'Info': WIInfo(),
'Balance': WIBalance() 'Delete': WIDelete(),
} 'Balance': WIBalance()
}
if options.datadir is not None: if options.datadir is not None:
wallet_dir = options.datadir wallet_dir = options.datadir