Skip to content

Commit

Permalink
[Hotfix] propagate change to consumer...
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Mar 29, 2021
1 parent a0cf98b commit 700f579
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fink_client/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ def consume(self, num_alerts: int = 1, timeout: float = -1) -> list:
if type(key) == bytes:
key = key.decode('utf8')

if key is None:
# backward compatibility
key = '1.0_0.4.3'

# Get the schema
if self.schema_path is not None:
_parsed_schema = _get_alert_schema(schema_path=self.schema_path)
Expand Down

0 comments on commit 700f579

Please sign in to comment.