From 3113dced7b900741fe00c25d0d7b18b47461db8c Mon Sep 17 00:00:00 2001 From: howard-stearns Date: Tue, 18 Apr 2017 12:06:44 -0700 Subject: [PATCH] Be sure to callback even on profile failure. --- scripts/system/pal.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/system/pal.js b/scripts/system/pal.js index 5fbea90025..ae64065216 100644 --- a/scripts/system/pal.js +++ b/scripts/system/pal.js @@ -400,6 +400,7 @@ function getProfilePicture(username, callback) { // callback(url) if successfull var matched = !error && html.match(/img class="users-img" src="([^"]*)"/); if (!matched) { print('Error: Unable to get profile picture for', username, error); + callback(''); return; } callback(matched[1]);