fix(remote_judger): not throwing error when no remote account info is given
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-04-16 15:01:05 +08:00
parent b020bc7354
commit 15c6f25839
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -81,7 +81,13 @@ class VJudge {
const provider = await import(`./providers/${type}`);
const account = provider.getAccountInfoFromEnv();
if (!account) throw new Error(`no account info for ${type}`);
if (!account) {
// throw new Error(`no account info for ${type}`);
logger.error(`no account info for ${type}`);
return;
}
this.p_imports[type] = provider.default;
this.providers[type] = new AccountService(provider.default, account);