Skip to content

Commit

Permalink
handle missing timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
bug-or-feature authored Dec 1, 2023
1 parent 83fd18c commit 7e5a8bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample/sample_ticker_rich.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def generate_table(tickers) -> Table:
f"{ticker.day_percent_change_mid:.2f}",
f"{ticker.day_high:.2f}",
f"{ticker.day_low:.2f}",
f"{ticker.timestamp.strftime('%Y-%m-%d %H:%M:%S')}",
f"{ticker.timestamp.strftime('%Y-%m-%d %H:%M:%S') if ticker.timestamp else ''}",
)

return table
Expand Down

0 comments on commit 7e5a8bd

Please sign in to comment.