Minor change
This commit is contained in:
parent
b7b67e9ac3
commit
b875093c8a
|
@ -20,7 +20,6 @@ async def message_handler(q: aiosched.Queue):
|
||||||
logging.info(f"Got message {msg!r} with the following payload: {payload}")
|
logging.info(f"Got message {msg!r} with the following payload: {payload}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(f"An exception occurred in the message handler -> {type(e).__name__}: {e}")
|
logging.error(f"An exception occurred in the message handler -> {type(e).__name__}: {e}")
|
||||||
raise
|
|
||||||
|
|
||||||
|
|
||||||
async def serve(bind_address: tuple):
|
async def serve(bind_address: tuple):
|
||||||
|
@ -131,5 +130,4 @@ if __name__ == "__main__":
|
||||||
if isinstance(error, KeyboardInterrupt):
|
if isinstance(error, KeyboardInterrupt):
|
||||||
logging.info("Ctrl+C detected, exiting")
|
logging.info("Ctrl+C detected, exiting")
|
||||||
else:
|
else:
|
||||||
raise
|
|
||||||
logging.error(f"Exiting due to a {type(error).__name__}: {error}")
|
logging.error(f"Exiting due to a {type(error).__name__}: {error}")
|
||||||
|
|
Reference in New Issue