[MO] simple change in ie bindings to avoid unnecessary warning (#8847)

This commit is contained in:
Andrei Kochin 2021-11-30 15:03:23 +03:00 committed by GitHub
parent e07cef0191
commit d9acc137f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ def import_core_modules(silent: bool, path_to_module: str):
return True
except Exception as e:
# Do not print a warning if module wasn't found or silent mode is on
if "No module named 'openvino'" not in str(e):
if "No module named 'openvino" not in str(e):
print("[ WARNING ] Failed to import Inference Engine Python API in: {}".format(path_to_module))
print("[ WARNING ] {}".format(e))