Autoclose script issue

Autoclose script issue

I've downloaded the autoclose.py script from https://pitstop.manageengine.com/portal/community/topic/script-master-13-how-to-automatically-close-requests-that-are-in-a-specific-status

However, each time it runs I receive the following error:

Traceback (most recent call last): File AutoClose.py, line 59, in <module> RequestID = request_Obj[Request ID] KeyError: Request ID

Is there anyway to resolve this?

Thanks.

                  New to ADSelfService Plus?