bad-exception-cause pylint error
Bug #2054364 reported by
Yanks
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstacksdk |
New
|
Undecided
|
Unassigned |
Bug Description
When catching `keystoneauth1.
The error is: E0705: Exception cause set to something which is not an exception, nor None (bad-exception-
when running pylint on the following code:
```
class CustomError(
pass
except keystoneauth1.
raise CustomError( # pylint: disable=
) from exc
```
To post a comment you must log in.
Hello, pylint maintainer here, please report this in the pylint repo directly at https:/ /github. com/pylint- dev/pylint/ issues/ new?assignees= &labels= Needs+triage+ %3Ainbox_ tray%3A& projects= &template= BUG-REPORT. yml