botant / py-business-calendar

Business days and custom calendar calculations for Python
MIT License
26 stars 11 forks source link

"busdaycount" method IndexError bypassing. #12

Closed MultiJohnen closed 3 years ago

MultiJohnen commented 3 years ago

Wrapped the "while" loop in a "try - except" to prevent the IndexError that occurs on "bisect_right" returning an index that is not present in the "holidays" list.