1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 10:29:59 +00:00

Torrent validation: explicitly mention missing announce-key

This commit is contained in:
TheAMM 2017-11-13 23:01:58 +02:00
parent e183d420ea
commit 630c69727d

View file

@ -417,6 +417,7 @@ class ReportActionForm(FlaskForm):
def _validate_trackers(torrent_dict, tracker_to_check_for=None):
announce = torrent_dict.get('announce')
assert announce is not None, 'no tracker in torrent'
announce_string = _validate_bytes(announce, 'announce', test_decode='utf-8')
tracker_found = tracker_to_check_for and (