Skip to content

Commit 2abf460

Browse files
committed
Remove unreachable None check in _ratelimit_wait
The thread has always finished by the time join() returns, and outcome.capture never raises, so callback_outcome is never None.
1 parent 4f8b96f commit 2abf460

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/spacetrack/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,8 +793,7 @@ def run_callback():
793793
t.join()
794794
# Match the async client, where a callback exception propagates and
795795
# aborts the request.
796-
if callback_outcome is not None:
797-
callback_outcome.unwrap()
796+
callback_outcome.unwrap()
798797

799798
def __getattr__(self, attr):
800799
if attr in self.request_controllers:

0 commit comments

Comments
 (0)