dosubot[bot] commented on issue #180:
URL:
https://github.com/apache/incubator-hugegraph-ai/issues/180#issuecomment-2685977689
<!-- Greeting -->
Hey @Kryst4lDem0ni4s! I'm here to help you out with any bugs, questions, or
contributions you have in mind. Let's tackle this together!
<!-- Answer -->
The error you're encountering is due to incorrect usage of the
`traceback.print_exception` function. This function requires three arguments:
`exc_type`, `exc_value`, and `tb`, which represent the exception type, value,
and traceback, respectively.
To fix the issue, you should modify the code in `huge_config.py` to
correctly pass these arguments. Here's how you can do it:
Replace the problematic code:
```python
except Exception as e: # pylint: disable=broad-exception-caught
traceback.print_exception(e)
self.gs_supported = False
log.warning(
"Failed to retrieve API version information from the server,
reverting to default v1."
)
```
With the corrected version:
```python
except Exception as e: # pylint: disable=broad-exception-caught
exc_type, exc_value, tb = sys.exc_info()
traceback.print_exception(exc_type, exc_value, tb)
self.gs_supported = False
log.warning(
"Failed to retrieve API version information from the server,
reverting to default v1."
)
```
This change ensures that the `traceback.print_exception` function receives
the correct arguments, allowing it to properly print the exception details.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
---
<sup>Help Dosu learn! Give it feedback: [Great
Response](https://app.dosu.dev/response-feedback/2d413d74-c570-4273-a88b-10733188c802?feedback_type=great_response)
| [Irrelevant
Answer](https://app.dosu.dev/response-feedback/2d413d74-c570-4273-a88b-10733188c802?feedback_type=irrelevant_answer)
| [Incorrect
Sources](https://app.dosu.dev/response-feedback/2d413d74-c570-4273-a88b-10733188c802?feedback_type=incorrect_sources)
| [Too
Verbose](https://app.dosu.dev/response-feedback/2d413d74-c570-4273-a88b-10733188c802?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/2d413d74-c570-4273-a88b-10733188c802?feedback_type=hallucination)
| [Bug
Report](https://app.dosu.dev/response-feedback/2d413d74-c570-4273-a88b-10733188c802?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/2d413d74-c570-4273-a88b-10733188c802?feedback_type=other)</sup>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]