Skip to content

Commit f5c9c0c

Browse files
Remove unnecessary try/except for collections.abc import (#2807)
Fixes GH-2806
1 parent 3d06bca commit f5c9c0c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sentry_sdk/client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
try:
2-
from collections.abc import Mapping
3-
except ImportError:
4-
from collections import Mapping # type: ignore[attr-defined]
5-
61
import os
72
import uuid
83
import random
94
import socket
5+
from collections.abc import Mapping
106
from datetime import datetime, timezone
117
from importlib import import_module
128

0 commit comments

Comments
 (0)