Jun-27-2022, 06:45 PM
(Jun-27-2022, 06:37 PM)deanhystad Wrote: My guess is the occasional blank like is from something you did not post. I would comment out the print and see if the blank lines still appear.
That whole block looks like this:
if current_date != current_date_prev: #debug daily_mode_counter += 1 print(f'current_date is {current_date}, common date is {datetime.utcfromtimestamp(current_date*86400).strftime("%Y-%m-%d")}, trade status is {trade_status}, and control flag is {control_flag}123456789.') current_date_prev = current_date if daily_mode_counter > 500: raise ValueError('daily_mode_counter > 100') #I forgot to include a line to increment counter on each pass else: passOnly the ValueError prints out if I comment out L3.