Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update C9.yaml to address bug in error handling for C9 Instance Finder #118

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

switch180
Copy link
Contributor

Issue #, if available:

Description of changes:
Addresses the following failure with exception handling. We should not pass err object to the traceback function

[ERROR] TypeError: '>=' not supported between instances of 'IndexError' and 'int'
Traceback (most recent call last):
File "/var/task/index.py", line 53, in lambda_handler
responseData = {'Error': traceback.format_exc(err)}
File "/var/lang/lib/python3.9/traceback.py", line 167, in format_exc
return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain))
File "/var/lang/lib/python3.9/traceback.py", line 120, in format_exception
return list(TracebackException(
File "/var/lang/lib/python3.9/traceback.py", line 517, in init
self.stack = StackSummary.extract(
File "/var/lang/lib/python3.9/traceback.py", line 340, in extract
if limit >= 0:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@switch180 switch180 merged commit 0e43f7e into master Jun 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant