add ninally
This commit is contained in:
parent
1edf5226dc
commit
ada3404835
@ -56,9 +56,9 @@ if __name__ == "__main__":
|
|||||||
read_msg(s)
|
read_msg(s)
|
||||||
except ConnectionRefusedError:
|
except ConnectionRefusedError:
|
||||||
print("Could not connect to the server!")
|
print("Could not connect to the server!")
|
||||||
|
finally:
|
||||||
|
s.close()
|
||||||
|
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("Exit with CTRL+C")
|
print("Exit with CTRL+C")
|
||||||
finally:
|
|
||||||
pass
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user