diff --git a/pyghmi/ipmi/command.py b/pyghmi/ipmi/command.py index 5788c653..75a60dbc 100644 --- a/pyghmi/ipmi/command.py +++ b/pyghmi/ipmi/command.py @@ -28,7 +28,10 @@ try: from pyghmi.ipmi.private import session except ImportError: session = None -from pyghmi.ipmi.private import localsession +try: + from pyghmi.ipmi.private import localsession +except ImportError: + localsession = None import pyghmi.ipmi.private.util as pygutil import pyghmi.ipmi.sdr as sdr import socket