1
0

changed some asserts to raise-exceptions in lib

This commit is contained in:
SomberNight
2018-04-07 17:01:38 +02:00
parent cf88e239d7
commit 76e67daadd
5 changed files with 34 additions and 15 deletions

View File

@@ -480,7 +480,9 @@ class WalletStorage(PrintError):
def convert_version_15(self):
if not self._is_upgrade_method_needed(14, 14):
return
assert self.get('seed_type') != 'segwit' # unsupported derivation
if self.get('seed_type') == 'segwit':
# should not get here; get_seed_version should have caught this
raise Exception('unsupported derivation (development segwit, v14)')
self.put('seed_version', 15)
def convert_version_16(self):