BLEN-358: Error in console after closing Blender #22

Merged
Bogdan Nagirniak merged 4 commits from BLEN-358_1 into hydra-render 2023-04-06 11:58:30 +02:00

View File

@ -37,6 +37,7 @@ __all__ = (
)
import os
import traceback
from pathlib import Path
import bpy
@ -116,4 +117,9 @@ def export_mtlx(material):
except ImportError:
print("ERROR: no MaterialX addon available")
except:
# This is a placeholder, this code will be moved to C part later
# This code shouldn't raise any exception due to breaking refcounts on RenderEngine
traceback.print_exc()
DagerD marked this conversation as resolved
Review

remove return "" from here, move comment under except:

remove `return ""` from here, move comment under `except:`
return ""