return inside generator

pull/16/merge
inpos 2017-11-26 17:31:10 +03:00
parent e02adcf845
commit c941a77d16
1 changed files with 4 additions and 3 deletions

View File

@ -145,10 +145,11 @@ class Movies(Core):
def iter_results(self):
if 'results' in self.movies.keys():
res = self.movies["results"]
else:
res = []
for i in self.movies["results"]:
yield i
else:
return []
def get_ordered_matches(self):
"""