In python 3.12, the exception contains the following statement: ``` ^^^^^^^^^^^^^^^^^^^^^ ``` I think this sentence is probably causing the detect exception to not work properly. Please correct this.