fix exeption handling in case of empty announce list
This commit is contained in:
		@@ -135,7 +135,10 @@ def createNewTorrent(reuqest):
 | 
			
		||||
	try:
 | 
			
		||||
		announce = bcoded[b'announce-list']
 | 
			
		||||
	except KeyError:
 | 
			
		||||
		try:
 | 
			
		||||
			announce = (bcoded[b'announce'], )
 | 
			
		||||
		except KeyError:
 | 
			
		||||
			announce = []
 | 
			
		||||
 | 
			
		||||
	is_ours = False
 | 
			
		||||
	for a in announce:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user