Commit d86c3ce7 authored by Romain Bignon's avatar Romain Bignon

fix crash when ID is invalid

parent cc6fb4db
......@@ -64,6 +64,8 @@ class GazelleBrowser(BaseBrowser):
return self.page.iter_torrents()
def get_torrent(self, fullid):
if not '.' in fullid:
return None
id, torrentid = fullid.split('.', 1)
self.location(self.buildurl('/torrents.php', id=id, torrentid=torrentid))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment