Anomaly detection code not working

my anomaly code was working earlier, but now the code is showing error in the " time.sleep(5)"
here attaching screenshot of them. please help ASAP.

your code was correct .i found it as correct try to run once more

I tried but it isn’t working. What to do now? Is it any technical error?

@ranganaatreya In your code, please try adding the line print(e) in the except block. This will print the exact issue that has occurred.