aboutsummaryrefslogtreecommitdiffstats
path: root/slack/http.py
diff options
context:
space:
mode:
Diffstat (limited to 'slack/http.py')
-rw-r--r--slack/http.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/slack/http.py b/slack/http.py
index a0baa74..820abb8 100644
--- a/slack/http.py
+++ b/slack/http.py
@@ -7,20 +7,12 @@ from typing import Dict
import weechat
+from slack.error import HttpError
from slack.log import LogLevel, log
from slack.task import FutureProcess, sleep, weechat_task_cb
from slack.util import get_callback_name
-class HttpError(Exception):
- def __init__(self, url: str, return_code: int, http_status: int, error: str):
- super().__init__()
- self.url = url
- self.return_code = return_code
- self.http_status = http_status
- self.error = error
-
-
def available_file_descriptors():
num_current_file_descriptors = len(os.listdir("/proc/self/fd/"))
max_file_descriptors = min(resource.getrlimit(resource.RLIMIT_NOFILE))