comparison 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
comparison
equal deleted inserted replaced
6717:469ad03e6cb8 6718:06d750efbc50
1109 1109
1110 try: 1110 try:
1111 httpd.serve_forever() 1111 httpd.serve_forever()
1112 except KeyboardInterrupt: 1112 except KeyboardInterrupt:
1113 print('Keyboard Interrupt: exiting') 1113 print('Keyboard Interrupt: exiting')
1114 httpd.socket.close()
1114 1115
1115 1116
1116 if __name__ == '__main__': 1117 if __name__ == '__main__':
1117 run() 1118 run()
1118 1119

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