fix crash when ID is invalid
This commit is contained in:
parent
2a6ad71826
commit
3b87d4aaf8
1 changed files with 2 additions and 0 deletions
|
|
@ -60,6 +60,8 @@ class GazelleBrowser(BaseBrowser):
|
||||||
return self.page.iter_torrents()
|
return self.page.iter_torrents()
|
||||||
|
|
||||||
def get_torrent(self, fullid):
|
def get_torrent(self, fullid):
|
||||||
|
if not '.' in fullid:
|
||||||
|
return None
|
||||||
id, torrentid = fullid.split('.', 1)
|
id, torrentid = fullid.split('.', 1)
|
||||||
self.location(self.buildurl('/torrents.php', id=id, torrentid=torrentid))
|
self.location(self.buildurl('/torrents.php', id=id, torrentid=torrentid))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue