crawler: Fix Return in synchronous function.

This commit is contained in:
Stuart Longland 2018-01-07 10:06:35 +10:00
parent e98ea98228
commit e05e70cb88
Signed by: stuartl
GPG Key ID: 6AA32EFB18079BAA

View File

@ -35,7 +35,7 @@ class Crawler(object):
avatar=b'')
self._db.add(avatar)
self._db.commit()
raise Return(avatar)
return avatar
@coroutine
def fetch_avatar(self, avatar):