diff --git a/resources/test/fixtures/E722.py b/resources/test/fixtures/E722.py index e90f3455f7..a0caee917c 100644 --- a/resources/test/fixtures/E722.py +++ b/resources/test/fixtures/E722.py @@ -1,6 +1,9 @@ try: pass -except ValueError: - pass except: pass + +try: + pass +except Exception: + pass diff --git a/src/linter.rs b/src/linter.rs index f580701c28..d9c9af7298 100644 --- a/src/linter.rs +++ b/src/linter.rs @@ -254,7 +254,7 @@ mod tests { actual.sort_by_key(|check| check.location); let expected = vec![Check { kind: CheckKind::DoNotUseBareExcept, - location: Location::new(5, 1), + location: Location::new(3, 1), fix: None, }]; assert_eq!(actual.len(), expected.len());