We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6401ce commit 3d0f4f8Copy full SHA for 3d0f4f8
excel_tracker.ts
@@ -54,10 +54,17 @@ export async function getActiveExcelRow() {
54
// wait the file to be created
55
await new Promise(resolve => setTimeout(resolve, 500))
56
// read output from script
57
- const s = Deno.readTextFileSync(infoFile)
58
- const [hs, vs] = s.split('_@@RS@@_')
59
- return {
60
- headings: hs.split('_@@HS@@_'),
61
- data: vs.split('_@@VS@@_')
+ try {
+ const s = Deno.readTextFileSync(infoFile)
+ const [hs, vs] = s.split('_@@RS@@_')
+ return {
+ headings: hs.split('_@@HS@@_'),
62
+ data: vs.split('_@@VS@@_')
63
+ }
64
+ } catch (_e) {
65
66
+ headings: [],
67
+ data: []
68
69
}
70
0 commit comments