diff --git a/source/server/apistatusd.py b/source/server/apistatusd.py index 04ad48c..eff1010 100755 --- a/source/server/apistatusd.py +++ b/source/server/apistatusd.py @@ -296,7 +296,10 @@ def main(): finally: if mySocket: logging.info('Shutdown socket') - mySocket.shutdown(socket.SHUT_RDWR) + try: + mySocket.shutdown(socket.SHUT_RDWR) + except Exception as e: + logging.error(f'Error while shutdown socket: {e}') return 0