You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/kristjan/.local/lib/python3.9/site-packages/pyopening_hours/node_modules/opening_hours/opening_hours.js:3644 if (typeof tokens[nrule][0][at] === 'undefined') { ^TypeError: Cannot read properties of undefined (reading '0') at formatWarnErrorMessage (/home/kristjan/.local/lib/python3.9/site-packages/pyopening_hours/node_modules/opening_hours/opening_hours.js:3644:30) at getWarnings (/home/kristjan/.local/lib/python3.9/site-packages/pyopening_hours/node_modules/opening_hours/opening_hours.js:4139:20) at Object.getWarnings (/home/kristjan/.local/lib/python3.9/site-packages/pyopening_hours/node_modules/opening_hours/opening_hours.js:6652:11) at Object.prettifyValue (/home/kristjan/.local/lib/python3.9/site-packages/pyopening_hours/node_modules/opening_hours/opening_hours.js:6658:9) at opening_hours_object (/home/kristjan/.local/lib/python3.9/site-packages/pyopening_hours/node_modules/opening_hours/interactive_testing.js:52:18) at Socket.<anonymous> (/home/kristjan/.local/lib/python3.9/site-packages/pyopening_hours/node_modules/opening_hours/interactive_testing.js:69:22) at Socket.emit (node:events:390:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10)Expecting value: line 1 column 1 (char 0)
The text was updated successfully, but these errors were encountered:
TypeError is a JavaScript exception (as can be concluded from the stack trace) and not a Python exception. I mark this as a bug but I am not actively looking into it as I currently don’t use this module.
I'm trying to catch the TypeError but I'm failing. What am I doing wrong?
This is my approach:
I get this error message:
The text was updated successfully, but these errors were encountered: