mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-28 23:31:21 +00:00
try catch
This commit is contained in:
parent
f6840c8298
commit
7d0f136cb7
1 changed files with 4 additions and 1 deletions
|
@ -207,7 +207,10 @@ async function allowInstance(api: LemmyHttp, instance: string) {
|
||||||
allow: true,
|
allow: true,
|
||||||
reason: undefined,
|
reason: undefined,
|
||||||
};
|
};
|
||||||
await api.adminAllowInstance(params);
|
// Ignore errors from duplicate allows (because setup gets called for each test file)
|
||||||
|
try {
|
||||||
|
await api.adminAllowInstance(params);
|
||||||
|
} catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function createPost(
|
export async function createPost(
|
||||||
|
|
Loading…
Reference in a new issue