bbim_translations - not to fail if user has fake-bpy-module

This commit is contained in:
Andrej730
2024-07-22 15:43:17 +05:00
parent 4c53881242
commit 797e3e8d8c
@@ -1,5 +1,8 @@
try:
import bpy
# Ensure it's not fake-bpy-module.
if not hasattr(bpy, "context"):
raise ModuleNotFoundError
import bl_i18n_utils
import addon_utils