From 5b9e488b9f0d41cc83f576b2bbaebc5d2480df43 Mon Sep 17 00:00:00 2001 From: Michal Stolarczyk Date: Wed, 2 Sep 2020 09:17:09 -0400 Subject: [PATCH] fix warning in seek --- refgenconf/refgenconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refgenconf/refgenconf.py b/refgenconf/refgenconf.py index 045e3322..b15ff68a 100755 --- a/refgenconf/refgenconf.py +++ b/refgenconf/refgenconf.py @@ -356,7 +356,7 @@ def seek(self, genome_name, asset_name, tag_name=None, seek_key=None, # return option2 if existence not enforced if strict_exists is None: _LOGGER.debug(msg) - if strict_exists is True: + elif strict_exists is True: raise OSError(msg) else: warnings.warn(msg, RuntimeWarning)