Skip to content

Commit 1d68872

Browse files
committed
Test linuxserver#6 - importing TimeoutError from socketio.exceptions...
1 parent 4273a32 commit 1d68872

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

root/app/auto_uptime_kuma/uptime_kuma_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from uptime_kuma_api.api import UptimeKumaApi, MonitorType
33
from auto_uptime_kuma.log import Log
44
from auto_uptime_kuma.config_service import ConfigService
5-
5+
from socketio.exceptions import TimeoutError
66

77
class UptimeKumaService:
88

@@ -144,7 +144,7 @@ def create_monitor(self, container_name, monitor_data):
144144

145145
try:
146146
monitor = self.api.add_monitor(**monitor_data)
147-
except socketio.exceptions.TimeoutError:
147+
except TimeoutError:
148148
Log.error("Timeout while trying to add monitor to Uptime Kuma. Is the server responsive?")
149149
return None
150150
except Exception as e:

0 commit comments

Comments
 (0)