We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ae1aad commit 1495734Copy full SHA for 1495734
python/ql/src/semmle/python/objects/ObjectAPI.qll
@@ -485,7 +485,8 @@ class ClassValue extends Value {
485
/** Whether this class is a legal exception class.
486
* What constitutes a legal exception class differs between major versions */
487
predicate isLegalExceptionType() {
488
- not this.isNewStyle() or
+ not this.isNewStyle()
489
+ or
490
this.getASuperType() = ClassValue::baseException()
491
or
492
major_version() = 2 and this = ClassValue::tuple()
0 commit comments