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
5 changes: 2 additions & 3 deletions memphis/producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,12 @@ async def produce(
schemaverse_fail_alert_type,
)
raise e
except Exception as e:
except Exception as e: # pylint: disable-next=no-member
if hasattr(e, "status_code") and e.status_code == "503":
raise MemphisError(
"Produce operation has failed, please check whether Station/Producer still exist"
)
else:
raise MemphisError(str(e)) from e
raise MemphisError(str(e)) from e

async def destroy(self):
"""Destroy the producer."""
Expand Down