Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion flixpy/flix/cli/interactive_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ async def _sign_in(self) -> None:
async def request(self, *args: Any, **kwargs: Any) -> aiohttp.ClientResponse:
# try to auth ahead of time only if the username and password
# were explicitly provided
if self.access_key is None and self.__username and self.__password:
if (
(self.access_key is None or self.access_key.has_expired)
and self.__username
and self.__password
):
await self._sign_in()

try:
Expand Down