Hi,
This is quite unexpected 
Are you sure that you don’t have a try: except: in python that eats up the error corresponding to the anomaly mode error?
Also you can try to force python to throw error on warning, but since you seem to be eating up the error, the warning’s error might be as well…