diff --git a/utils/apparmor/yasti.py b/utils/apparmor/yasti.py index e54930811..5b7b2a351 100644 --- a/utils/apparmor/yasti.py +++ b/utils/apparmor/yasti.py @@ -12,8 +12,12 @@ # # ---------------------------------------------------------------------- import re -import ycp import sys +try: + import ycp +except ImportError: + # ycp isn't found everywhere. + ycp = None from apparmor.common import error, DebugLogger