only pass non default timeout
This commit is contained in:
parent
fbb702e349
commit
c133e853f8
1 changed files with 5 additions and 2 deletions
|
@ -104,7 +104,10 @@ class Imdb(models.Model):
|
|||
data['title'] = data['title'].strip()
|
||||
return data
|
||||
|
||||
def update(self):
|
||||
def update(self, timeout=None):
|
||||
if timeout != None:
|
||||
info = ox.web.imdb.ImdbCombined(self.imdb, timeout=timeout)
|
||||
else:
|
||||
info = ox.web.imdb.ImdbCombined(self.imdb)
|
||||
info = self.apply_patch(info)
|
||||
if info:
|
||||
|
|
Loading…
Reference in a new issue