Close sockets without catching exceptions

This commit is contained in:
Alexander Fasching 2017-12-07 00:47:14 +01:00
parent 4ea0cbe677
commit 858046cb2f
1 changed files with 2 additions and 8 deletions

View File

@ -67,15 +67,9 @@ def main():
print('Unexpected error:', e, file=sys.stderr)
return 1
try:
rs.close()
except:
pass
rs.close()
gs.close()
try:
gs.close()
except:
pass
if __name__ == '__main__':
sys.exit(main() or 0)