Skip to content

Commit

Permalink
replace is not comparison with string literal
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyworkman committed Jan 4, 2023
1 parent f26f0aa commit b9a1094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions latch_cli/centromere/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def fake_import(name, globals=None, locals=None, fromlist=(), level=0):
fromlist=fromlist,
level=level,
)
except (ModuleNotFoundError, AttributeError):
except (ModuleNotFoundError, AttributeError) as e:
return FakeModule(name)

# Temporary ctx tells lytekit to skip local execution when
Expand Down Expand Up @@ -118,7 +118,7 @@ def _from_env():

# empty string for tls verify counts as "false".
# Any value or 'unset' counts as true.
tls_verify = environment.get("DOCKER_TLS_VERIFY") is not ""
tls_verify = environment.get("DOCKER_TLS_VERIFY") != ""

enable_tls = tls_verify or cert_path is not None

Expand Down

0 comments on commit b9a1094

Please sign in to comment.