Skip to content

Commit

Permalink
refactor(nuke): avoid use print
Browse files Browse the repository at this point in the history
  • Loading branch information
NateScarlet committed Apr 25, 2024
1 parent c38d73b commit 8802f3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wulifang/nuke/_split_psd_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,10 @@ def filtered_layers():
# spell-checker: word blendmode
try:
operation = _BLEND_MAP[cast_text(l.attrs["blendmode"])]
except:
print("unknown blending mode %s" % (l.attrs["blendmode"],))
except KeyError:
wulifang.message.error(
"unknown blending mode %s" % (l.attrs["blendmode"],)
)
operation = "normal"

if last_layer:
Expand Down

0 comments on commit 8802f3b

Please sign in to comment.