Don't let Bookmark.edit with a blank url.
This commit is contained in:
parent
5a512d8a25
commit
1784e584e2
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue