except
, specify exception instead FLK-E722343 entropy_check = 2.5
344 try:
345 gray = cv2.cvtColor(figure, cv2.COLOR_BGR2GRAY)
346 except:347 continue
348 high_entropy = shannon_entropy(gray) > entropy_check
349 if not high_entropy:
Using except
without a specific exception can be error prone.