mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
suppress unneeded error message
This commit is contained in:
parent
9d93c2e6c9
commit
2bfd8b42f6
@ -1644,7 +1644,17 @@ export class ActiveDoc extends EventEmitter {
|
||||
const action: BulkRemoveRecord = ["BulkRemoveRecord", "_grist_Attachments", rowIds];
|
||||
await this.applyUserActions(makeExceptionalDocSession('system'), [action]);
|
||||
}
|
||||
await this.docStorage.removeUnusedAttachments();
|
||||
try {
|
||||
await this.docStorage.removeUnusedAttachments();
|
||||
} catch (e) {
|
||||
// If document doesn't have _gristsys_Files, don't worry about it;
|
||||
// if this is an error it will have already been reported, and the
|
||||
// document can be in this state when updating initial SQL code after
|
||||
// a schema change.
|
||||
if (!String(e).match(/no such table: _gristsys_Files/)) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Needed for test/server/migrations.js tests
|
||||
|
Loading…
Reference in New Issue
Block a user