Transform try-except with no name in node.js backend