Skip to content

Commit 68fc283

Browse files
committed
Remove raising of unreachable error
1 parent 27e7196 commit 68fc283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tseries/offsets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -738,11 +738,11 @@ def rollforward(self, dt):
738738
return dt
739739

740740
def _get_closing_time(self, dt):
741+
# dt is guaranteed to be a starting time
741742
for i, st in enumerate(self.start):
742743
if st.hour == dt.hour and st.minute == dt.minute:
743744
return dt + timedelta(
744745
seconds=self._get_business_hours_by_sec(st, self.end[i]))
745-
raise ValueError("dt should be a starting time")
746746

747747
@apply_wraps
748748
def apply(self, other):

0 commit comments

Comments
 (0)