mirror of
https://github.com/romanz/amodem.git
synced 2026-04-22 22:36:27 +08:00
trezor-agent: add invalid value for assertion
This commit is contained in:
@@ -18,7 +18,7 @@ def identity_from_gitconfig():
|
|||||||
|
|
||||||
name_regex = re.compile(r'^remote\..*\.trezor$')
|
name_regex = re.compile(r'^remote\..*\.trezor$')
|
||||||
names = [k for k in config if name_regex.match(k)]
|
names = [k for k in config if name_regex.match(k)]
|
||||||
assert len(names) == 1
|
assert len(names) == 1, names
|
||||||
key_name, = names
|
key_name, = names
|
||||||
|
|
||||||
section_name, _ = key_name.rsplit('.', 1) # extract remote name marked as TREZOR's
|
section_name, _ = key_name.rsplit('.', 1) # extract remote name marked as TREZOR's
|
||||||
|
|||||||
Reference in New Issue
Block a user