summaryrefslogtreecommitdiff
path: root/app/fronters/dl.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/fronters/dl.js')
-rwxr-xr-xapp/fronters/dl.js2
1 files changed, 1 insertions, 1 deletions
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");