Skip to content

Commit

Permalink
fixed black format
Browse files Browse the repository at this point in the history
  • Loading branch information
dineshbaburam91 committed Oct 16, 2024
1 parent 079a60e commit 0d04514
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/jnpr/junos/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,10 +868,9 @@ def execute(self, rpc_cmd, ignore_warning=False, **kvargs):
"JSON",
]:
ver_info = self.facts.get("version_info")
if (
ver_info
and (ver_info.major[0] >= 15
or (ver_info.major[0] == 14 and ver_info.major[1] >= 2))
if ver_info and (
ver_info.major[0] >= 15
or (ver_info.major[0] == 14 and ver_info.major[1] >= 2)
):
try:
return json.loads(rpc_rsp_e.text, strict=False)
Expand Down

0 comments on commit 0d04514

Please sign in to comment.