Skip to content

Commit ab83b77

Browse files
committed
Fix possible KeyError in moregrab command
1 parent c01cf05 commit ab83b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/grab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def load_cache(db):
4646
@hook.command("moregrab", autohelp=False)
4747
def moregrab(text, chan, conn):
4848
"""if a grab search has lots of results the results are pagintated. If the most recent search is paginated the pages are stored for retreival. If no argument is given the next page will be returned else a page number can be specified."""
49-
pages = search_pages[conn.name][chan]
49+
pages = search_pages[conn.name].get(chan)
5050
if not pages:
5151
return "There are no grabsearch pages to show."
5252

0 commit comments

Comments
 (0)