list = [1,2,3,4,5,6]

for i in list:
	try:
		do_something(i)
		
	except Exception:
		resolve_errors()