mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-02-04 09:14:30 +00:00
Minor tweak #3
This commit is contained in:
@@ -47,6 +47,7 @@ class WebsocketSpotProvider(SpotProvider):
|
|||||||
logging.debug("Connecting to " + self.name + " spot API...")
|
logging.debug("Connecting to " + self.name + " spot API...")
|
||||||
self.status = "Connecting"
|
self.status = "Connecting"
|
||||||
self.ws = create_connection(self.url, header=HTTP_HEADERS)
|
self.ws = create_connection(self.url, header=HTTP_HEADERS)
|
||||||
|
self.status = "Connected"
|
||||||
data = self.ws.recv()
|
data = self.ws.recv()
|
||||||
if data:
|
if data:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user