Skip to content

Commit 9841481

Browse files
committed
Fix fallback
1 parent a49fb6c commit 9841481

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyhilo/event.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ def _convert_phases(self, phases: dict[str, Any]) -> None:
108108
self.phases_list.append(phase)
109109
for phase in self.__annotations__:
110110
if phase not in self.phases_list:
111+
now_with_tz = datetime.now(timezone.utc).astimezone()
111112
# On t'aime Carl
112-
setattr(self, phase, from_utc_timestamp("2023-11-15T20:00:00+00:00"))
113+
setattr(self, phase, now_with_tz)
113114

114115
def _create_phases(
115116
self, hours: int, phase_name: str, parent_phase: str

pyhilo/websocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ async def async_connect(self) -> None:
273273
if self.connected:
274274
LOG.debug("Websocket: async_connect() called but already connected")
275275
return
276-
276+
277277
if self._api.session.closed:
278278
LOG.error("Websocket: Cannot connect, session is closed")
279279
raise CannotConnectError("Session is closed")

0 commit comments

Comments
 (0)