Skip to content

Commit 9c5f8a8

Browse files
committed
Simplify logical statement
1 parent 4834b38 commit 9c5f8a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

juju/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def parse_base_arg(base):
419419
:param base str : The base to deploy a charm (e.g. ubuntu@22.04)
420420
"""
421421
client.CharmBase()
422-
if not isinstance(base, str) or "@" not in base:
422+
if not (isinstance(base, str) and "@" in base):
423423
raise errors.JujuError(f"expected base string to contain os and channel separated by '@', got : {base}")
424424

425425
name, channel = base.split('@')

0 commit comments

Comments
 (0)