2

# Invalid limits given: %s

Package:

sympy

8356

Exception Class:

ValueError

## Raise code

```
if len(limits) == 3:
x, start, stop = limits
elif len(limits) == 2:
x = _find_x(func)
start, stop = limits
if not isinstance(x, Symbol) or start is None or stop is None:
raise ValueError('Invalid limits given: %s' % str(limits))
unbounded = [S.NegativeInfinity, S.Infinity]
if start in unbounded or stop in unbounded:
raise ValueError("Both the start and end value should be bounded")
return sympify((x, start, stop))
```

## Links to the raise (3)

https://github.com/sympy/sympy/blob/2c83657ff1c62fc2761b639469fdac7f7561a72a/sympy/series/fourier.py#L85 https://github.com/sympy/sympy/blob/2c83657ff1c62fc2761b639469fdac7f7561a72a/sympy/series/sequences.py#L537 https://github.com/sympy/sympy/blob/2c83657ff1c62fc2761b639469fdac7f7561a72a/sympy/series/sequences.py#L680NO FIXES YET

Just press the button and we will add solution

to this exception as soon as possible

* As many users press the button, the faster we create a fix

### Add a possible fix

Please authorize to post fix