Hi @Yuvraj Patil
Per my test, I can reproduce your error in my appcatalog.
As far as I know, App Catalog is system created site used to upload and store app package not attachment files. We are unable to attach files to AppRequest list and there is no attachment files too. So you can change the condition and skip the "AppRequest list".
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.