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
Showing only changes of commit 60cb1d7e05 - Show all commits

View File

@ -117,10 +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
except:
traceback.print_exc()
return ""
DagerD marked this conversation as resolved
Review

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

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