stable-diffusion-studio icon indicating copy to clipboard operation
stable-diffusion-studio copied to clipboard

prompt_blending.py raises an index out of bound exception

Open autumnmotor opened this issue 3 years ago • 0 comments

Sometimes prompt_blending.py raises an index out of bound exception, I think this part should be fixed

       if c == REAL_MARK and stack[-1] == '{':
           p[i] = MARK

I think "stack[-1]" sometimes tries to access an invalid index and raises an exception.

   if len(stack) > 0:
       if c == REAL_MARK and stack[-1] == '{':
           p[i] = MARK

autumnmotor avatar Nov 07 '22 13:11 autumnmotor