Skip to content

Commit 0e269a0

Browse files
committed
[EN-1414] fix extra logs in pytest
1 parent 4ada855 commit 0e269a0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dxfeed/core/DXFeedPy.pyx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def dxf_create_subscription(ConnectionClass cc, event_type: str, candle_time: Op
231231
candle_time = datetime.strptime(candle_time, '%Y-%m-%d %H:%M:%S') if candle_time else datetime.utcnow()
232232
timestamp = int((candle_time - datetime(1970, 1, 1)).total_seconds()) * 1000 - 5000
233233
except ValueError:
234-
raise Exception("Inapropriate date format, should be %Y-%m-%d %H:%M:%S")
234+
raise Exception("Inappropriate date format, should be %Y-%m-%d %H:%M:%S")
235235

236236
if event_type == 'Candle':
237237
clib.dxf_create_subscription_timed(sc.connection, et_type_int, timestamp, &sc.subscription)
@@ -370,11 +370,11 @@ def dxf_close_connection(ConnectionClass cc):
370370
cc: ConnectionClass
371371
Variable with connection information
372372
"""
373-
related_subs = cc.get_sub_refs()
374-
for sub in related_subs:
375-
dxf_close_subscription(sub)
376-
377373
if cc.connection:
374+
related_subs = cc.get_sub_refs()
375+
for sub in related_subs:
376+
dxf_close_subscription(sub)
377+
378378
clib.dxf_close_connection(cc.connection)
379379
cc.connection = NULL
380380

0 commit comments

Comments
 (0)