Handle exception if no tags in DB.

This commit is contained in:
Arun Prakash Jana 2016-11-20 11:11:09 +05:30
parent 36ac3aaca6
commit e56c04a315
No known key found for this signature in database
GPG Key ID: A75979F35C080412

View File

@ -1089,6 +1089,9 @@ class BukuDb:
if tag not in tags:
tags += (tag,)
if len(tags) == 0:
return tags
if tags[0] == '':
unique_tags = sorted(tags[1:], key=str.lower)
else: