Assume _current_url is valid (remove try/except)

This commit is contained in:
Marshall Lochbaum 2016-07-23 11:10:54 -04:00
parent 02731743c0
commit 9758b52d91

View File

@ -1110,12 +1110,7 @@ class CommandDispatcher:
quickmark_manager = objreg.get('quickmark-manager')
if name is None:
url = self._current_url()
try:
name = quickmark_manager.get_by_qurl(url)
except ValueError:
urlutils.invalid_url_error(self._win_id, url,
"delete quickmark")
return
name = quickmark_manager.get_by_qurl(url)
try:
quickmark_manager.delete(name)
except KeyError: