Skip to content

raise exc_info[0], exc_info[1], exc_info[2] - Syntax Error #721

Description

@rajwit

Hi,

I do see the below error message, please help me to address this.

I'm trying to deploy the HelloWorld Python 3.4.1. program to GoogleAppEngine and below is the error message I do see

File "C:\Program Files (x86)\Google\google_appengine\lib\webob-1.1.1\webob\request.py", line 1052
raise exc_info[0], exc_info[1], exc_info[2]
^
SyntaxError: invalid syntax

below is the snap chat of the code
if self.is_body_seekable:
self.body_file_raw.seek(0)
captured = []
output = []
def start_response(status, headers, exc_info=None):
if exc_info is not None and not catch_exc_info:
raise exc_info[0], exc_info[1], exc_info[2]
captured[:] = [status, headers, exc_info]
return output.append
app_iter = application(self.environ, start_response)
if output or not captured:
try:
output.extend(app_iter)
finally:
if hasattr(app_iter, 'close'):
app_iter.close()
app_iter = output
if catch_exc_info:
return (captured[0], captured[1], app_iter, captured[2])
else:
return (captured[0], captured[1], app_iter)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions