mirror of
https://github.com/ProjectSynthoria/SynthoriaArchive.git
synced 2025-03-12 23:36:54 +02:00
Torrent validation: explicitly mention missing announce-key
This commit is contained in:
parent
e183d420ea
commit
630c69727d
1 changed files with 1 additions and 0 deletions
|
@ -417,6 +417,7 @@ class ReportActionForm(FlaskForm):
|
||||||
|
|
||||||
def _validate_trackers(torrent_dict, tracker_to_check_for=None):
|
def _validate_trackers(torrent_dict, tracker_to_check_for=None):
|
||||||
announce = torrent_dict.get('announce')
|
announce = torrent_dict.get('announce')
|
||||||
|
assert announce is not None, 'no tracker in torrent'
|
||||||
announce_string = _validate_bytes(announce, 'announce', test_decode='utf-8')
|
announce_string = _validate_bytes(announce, 'announce', test_decode='utf-8')
|
||||||
|
|
||||||
tracker_found = tracker_to_check_for and (
|
tracker_found = tracker_to_check_for and (
|
||||||
|
|
Loading…
Add table
Reference in a new issue