Show a nice message when no URLs are found

This commit is contained in:
Kovid Goyal
2018-02-14 18:36:57 +05:30
parent 0bda7b3679
commit e4b643fdaf

View File

@@ -206,6 +206,9 @@ def run(args, source_file=None):
for line in text.splitlines():
marked = mark(finditer, line, index_map)
lines.append(marked)
if not index_map:
input(_('No URLs found, press Enter to abort.'))
return
loop = Loop()
handler = URLHints(lines, index_map)