From d9c4e930f3ac8f711346ca0fb3eda8726af369d4 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Thu, 5 May 2016 21:42:11 +0300 Subject: [PATCH] main: fixup str/bytes issue for curve_name --- trezor_agent/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trezor_agent/__main__.py b/trezor_agent/__main__.py index 37d354d..e6ad721 100644 --- a/trezor_agent/__main__.py +++ b/trezor_agent/__main__.py @@ -128,7 +128,7 @@ def run_agent(client_factory=client.Client): args = create_agent_parser().parse_args() setup_logging(verbosity=args.verbose) - with client_factory(curve=args.ecdsa_curve_name) as conn: + with client_factory(curve=args.ecdsa_curve_name.encode('ascii')) as conn: label = args.identity command = args.command @@ -156,7 +156,7 @@ def run_git(client_factory=client.Client): args = create_git_parser().parse_args() setup_logging(verbosity=args.verbose) - with client_factory(curve=args.ecdsa_curve_name) as conn: + with client_factory(curve=args.ecdsa_curve_name.encode('ascii')) as conn: label = git_host(args.remote, ['pushurl', 'url']) if not label: log.error('Could not find "%s" SSH remote in .git/config',