I dont understand this run error

I have written a lot of codes where my code is working fine on sample cases but when I submit, I get a run error.

it seems there are multiple whitespaces between 2 integers in input, use try and except to solve this problem
Corrected Code:
N=int(input())

for i in range(N):

    length=int(input())

    x=input()

    alist=x.split(" ")

    csum=0

    maxsum=-1000000

    for i in alist:

        try:

            csum+=int(i)

            if csum>maxsum:

                maxsum=csum

            if csum<0:

                csum=0

        except:

            pass

    print (maxsum)

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.