diff --git a/lib/sb2.js b/lib/sb2.js index 9681c1b..567b6a2 100644 --- a/lib/sb2.js +++ b/lib/sb2.js @@ -166,7 +166,14 @@ const blocks = function (project) { */ const extensions = function (project) { const result = {count: 0, id: []}; - const ext = project.info.savedExtensions; + + try { + const ext = project.info.savedExtensions; + } catch (error) { + if (error instanceof TypeError) { + console.log("A TypeError occurred:", error.message); + } + } // Check to ensure project includes any extensions if (typeof ext === 'undefined') return result;