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

This commit is contained in:
voussoir 2017-07-13 22:58:02 -07:00
parent 5a512d8a25
commit 1784e584e2

View file

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