From 84999f590e18a929b54c228345f829fc85cc8c37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Santos?= Date: Thu, 23 Jan 2020 12:24:30 +0000 Subject: [PATCH] convert to bool --- dvc/config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dvc/config.py b/dvc/config.py index 4846882e27..f2334495ef 100644 --- a/dvc/config.py +++ b/dvc/config.py @@ -27,8 +27,10 @@ class NoRemoteError(ConfigError): def __init__(self, command, *, config=None): has_any_remote = False if config: - has_any_remote = config.list_options( - Config.SECTION_REMOTE_REGEX, Config.SECTION_REMOTE_URL + has_any_remote = bool( + config.list_options( + Config.SECTION_REMOTE_REGEX, Config.SECTION_REMOTE_URL + ) ) if has_any_remote: