Show a nice message when no URLs are found
This commit is contained in:
parent
0bda7b3679
commit
e4b643fdaf
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue