Skip to content

Commit

Permalink
Skip if no such key (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wh1isper authored Jul 10, 2024
1 parent cdbdbd8 commit b306d75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redis_canal/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ async def _get_redis_stream_keys(self) -> list[str]:
await self.redis_client.xinfo_stream(self.redis_stream_key)
except redis.ResponseError:
logger.error(f"{self.redis_stream_key} is not a stream or does not exist")
raise
keys.append(self.redis_stream_key)
else:
keys.append(self.redis_stream_key)

if self.redis_stream_key_prefix:
if self.redis_stream_key_prefix == "*":
Expand Down

0 comments on commit b306d75

Please sign in to comment.