From bef18a93201adb4bd067551504616f7407180865 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 8 Apr 2020 10:28:26 -0400 Subject: [PATCH] hotfix --- lib/commands/pin-rpc.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/commands/pin-rpc.js b/lib/commands/pin-rpc.js index f3ade0489..258c6f53b 100644 --- a/lib/commands/pin-rpc.js +++ b/lib/commands/pin-rpc.js @@ -56,9 +56,13 @@ var loadUserPins = function (Env, safeKey, cb) { }; var truthyKeys = function (O) { - return Object.keys(O).filter(function (k) { - return O[k]; - }); + try { + return Object.keys(O).filter(function (k) { + return O[k]; + }); + } catch (err) { + return []; + } }; var getChannelList = Pinning.getChannelList = function (Env, safeKey, _cb) {