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 62913db537

View File

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