diff --git a/PyDictionary/core.py b/PyDictionary/core.py index e63d8dc..da04bb0 100644 --- a/PyDictionary/core.py +++ b/PyDictionary/core.py @@ -124,6 +124,10 @@ def meaning(term, disable_errors=False): length = len(types) lists = html.findAll("ul") out = {} + + if 'Your search did not return any results.' in types[0]: + return out + for a in types: reg = str(lists[types.index(a)]) meanings = []