diff --git a/lib/jnpr/junos/device.py b/lib/jnpr/junos/device.py index bd4cb2644..063ffb344 100644 --- a/lib/jnpr/junos/device.py +++ b/lib/jnpr/junos/device.py @@ -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)