Don't let Bookmark.edit with a blank url.

master
voussoir 2017-07-13 22:58:02 -07:00
parent 5a512d8a25
commit 1784e584e2
1 changed files with 2 additions and 0 deletions

View File

@ -472,6 +472,8 @@ class Bookmark(ObjectBase):
self.title = title
if url is not None:
if not url:
raise ValueError('Need a URL')
self.url = url
cur = self.photodb.sql.cursor()