File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 77import ssl
88import time
99import asyncio
10+
1011from datetime import datetime , timedelta , timezone
1112from collections import defaultdict
1213from urllib .request import getproxies
Original file line number Diff line number Diff line change 33import os
44import threading
55import asyncio
6- import inspect
76
87from time import sleep , time
98from sentry_sdk ._queue import Queue , FullError
@@ -306,11 +305,7 @@ async def _target(self) -> None:
306305
307306 async def _process_callback (self , callback : Callable [[], Any ]) -> None :
308307 # Callback is an async coroutine, need to await it
309- if inspect .iscoroutinefunction (callback ):
310- await callback ()
311- else :
312- # Callback is a sync function, such as _flush_client_reports()
313- callback ()
308+ await callback ()
314309
315310 def _on_task_complete (self , task : asyncio .Task [None ]) -> None :
316311 try :
You can’t perform that action at this time.
0 commit comments