Commit c464f21
committed
Fix
Apparently sometimes the IBKR API doesn't populate all the date fields,
so attempting to parse empty timezone names crashes the date range
parsing logic.
Easy fix: if no dates available or if timezone isn't populated, just
return nothing (instead of crashing) because we can't do anything.
Fixes #46details.liquidHours() crash if no dates1 parent 20fc09f commit c464f21
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
585 | 601 | | |
586 | 602 | | |
587 | 603 | | |
| |||
0 commit comments