From d514919b628be7eeb81e95f7d293b136397ed056 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 6 Dec 2015 14:23:53 +0000 Subject: [PATCH] Better comparison --- project/config/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/config/cli.py b/project/config/cli.py index 2e73770..bb4be23 100644 --- a/project/config/cli.py +++ b/project/config/cli.py @@ -19,7 +19,7 @@ def show(key): @click.argument('key', nargs=1) @click.argument('value', nargs=-1) def set(key, value): - if type(value) == type(()): + if isinstance(value, tuple): value = " ".join(value) status = config.set(key, value) if status == "SUCCESS":