diff --git a/plugins/newegg.py b/plugins/newegg.py index ab667e1..072ad94 100644 --- a/plugins/newegg.py +++ b/plugins/newegg.py @@ -85,8 +85,10 @@ def newegg(inp): ) # get the first result - item = r["ProductListItems"][0] - - return format_item(item) + if r["ProductListItems"]: + item = r["ProductListItems"][0] + return format_item(item) + else: + return "No results found."