From 09bd0164ebc020a54b944b7326dcba496fb5d82c Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 26 Aug 2022 22:29:23 +0200 Subject: idk when was the last commit so I'm making a new one - Violet Dawn --- app/fronters/dl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/fronters/dl.js') diff --git a/app/fronters/dl.js b/app/fronters/dl.js index 61f7e31..7e04a0b 100755 --- a/app/fronters/dl.js +++ b/app/fronters/dl.js @@ -6,7 +6,7 @@ for (let system of ["gdapd", "ynmuc"]) { let data = JSON.parse(fs.readFileSync("data.json").toString()); for (let member of data) { - cp.execSync("convert " + member['avatar_url'] + " ./profiles/" + member['id'] + ".png"); + if (member['avatar_url']) cp.execSync("convert " + member['avatar_url'] + " ./profiles/" + member['id'] + ".png"); } fs.unlinkSync("data.json"); -- cgit