mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-24 12:48:42 +00:00
fix(remote_judger): not throwing error when no remote account info is given
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b020bc7354
commit
15c6f25839
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user