Python invalid syntax
cookie = next(c.value for c in s.cookies if c.name == 'SVPNCOOKIE' and c.value, None)
^^^^^^^^^^^^^
SyntaxError: Generator expression must be parenthesized
Edited by Dimitri Papadopoulos Orfanos
cookie = next(c.value for c in s.cookies if c.name == 'SVPNCOOKIE' and c.value, None)
^^^^^^^^^^^^^
SyntaxError: Generator expression must be parenthesized