[MO] simple change in ie bindings to avoid unnecessary warning (#8847)
This commit is contained in:
parent
e07cef0191
commit
d9acc137f8
@ -102,7 +102,7 @@ def import_core_modules(silent: bool, path_to_module: str):
|
|||||||
return True
|
return True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# Do not print a warning if module wasn't found or silent mode is on
|
# 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 ] Failed to import Inference Engine Python API in: {}".format(path_to_module))
|
||||||
print("[ WARNING ] {}".format(e))
|
print("[ WARNING ] {}".format(e))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user