diff roundup/scripts/roundup_server.py @ 6718:06d750efbc50

Fix ResourceWarning error due to unclosed socket on exit from roundup_server. The warning adds clutter that I don't need to parse through.
author John Rouillard <rouilj@ieee.org>
date Wed, 22 Jun 2022 15:38:25 -0400
parents 98a9df71e24c
children d659cfa8439c
line wrap: on
line diff
--- a/roundup/scripts/roundup_server.py	Wed Jun 22 15:19:35 2022 -0400
+++ b/roundup/scripts/roundup_server.py	Wed Jun 22 15:38:25 2022 -0400
@@ -1111,6 +1111,7 @@
         httpd.serve_forever()
     except KeyboardInterrupt:
         print('Keyboard Interrupt: exiting')
+        httpd.socket.close()
 
 
 if __name__ == '__main__':

Roundup Issue Tracker: http://roundup-tracker.org/