Skip to content

Commit 1495734

Browse files
committed
Python: Fix formatting of isLegalExceptionType
1 parent 3ae1aad commit 1495734

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/ql/src/semmle/python/objects/ObjectAPI.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,8 @@ class ClassValue extends Value {
485485
/** Whether this class is a legal exception class.
486486
* What constitutes a legal exception class differs between major versions */
487487
predicate isLegalExceptionType() {
488-
not this.isNewStyle() or
488+
not this.isNewStyle()
489+
or
489490
this.getASuperType() = ClassValue::baseException()
490491
or
491492
major_version() = 2 and this = ClassValue::tuple()

0 commit comments

Comments
 (0)