Skip to content

Commit 088d555

Browse files
committed
chore: update catch exception
1 parent 69bceb6 commit 088d555

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_zoneinfo/test_zoneinfo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,7 @@ class EvilZoneInfo(ZoneInfo):
15851585

15861586
self.assertIsNotNone(zone1)
15871587
self.assertEqual(str(zone1), "UTC")
1588-
except ModuleNotFoundError:
1588+
except self.module.ZoneInfoNotFoundError:
15891589
pass
15901590

15911591
EvilZoneInfo.clear_cache()
@@ -1594,7 +1594,7 @@ class EvilZoneInfo(ZoneInfo):
15941594
zone2 = EvilZoneInfo("UTC")
15951595
self.assertIsNotNone(zone2)
15961596
self.assertEqual(str(zone2), "UTC")
1597-
except ModuleNotFoundError:
1597+
except self.module.ZoneInfoNotFoundError:
15981598
pass
15991599

16001600

0 commit comments

Comments
 (0)