If there is no uids - just return

This commit is contained in:
Oleksii Shevchuk 2016-10-19 21:09:33 +03:00
parent ef9a89a14f
commit 49eb7e8daa
1 changed files with 1 additions and 1 deletions

View File

@ -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)