GooseterV / Project-Euler

Unguarded next inside generator PTC-W0063
Bug risk
Critical
1 occurrence in this check
Call to next() should be wrapped in try-except
 90	return [i for (i, isprime) in enumerate(listPrimality(n)) if isprime]
 91
 92def nthPrime(n):
 93	return next(itertools.islice(filter(isPrime, itertools.count(2)), n-1, None)) 94
 95
 96def nthRoot(num, root) -> float: