From 49eb7e8daaf95f476da9f625c6bf16a2cf720fd2 Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Wed, 19 Oct 2016 21:09:33 +0300 Subject: [PATCH] If there is no uids - just return --- pupy/pupylib/utils/credentials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pupy/pupylib/utils/credentials.py b/pupy/pupylib/utils/credentials.py index 88f8fc36..11125c19 100644 --- a/pupy/pupylib/utils/credentials.py +++ b/pupy/pupylib/utils/credentials.py @@ -28,7 +28,7 @@ class Credentials(object): def add(self, data): with open(self.db) as json_db: db = json.load(json_db) - + for d in data: if not self.checkIfExists(d, db['creds']): db['creds'].append(d)