From 35bc586b72487c835e172da0ea431916824c415f Mon Sep 17 00:00:00 2001 From: Richard Bronkhorst Date: Sun, 25 Jun 2023 20:21:49 +0200 Subject: [PATCH] Update api.py --- nullptr/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nullptr/api.py b/nullptr/api.py index ed4bb26..0c83211 100644 --- a/nullptr/api.py +++ b/nullptr/api.py @@ -31,7 +31,7 @@ class Api: def request(self, method, path, data=None, need_token=True, params={}): try: return self.request_once(method, path, data, need_token, params) - except (ApiLimitError, requests.exception.Timeout): + except (ApiLimitError, requests.exceptions.Timeout): print('oops, hit the limit. take a break') sleep(10) return self.request_once(method, path, data, need_token, params)