mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Log in case connection fails (to test ipv6)
This commit is contained in:
parent
ade1c2f377
commit
d38d23f46d
1 changed files with 2 additions and 1 deletions
|
|
@ -53,7 +53,8 @@ class Connection:
|
|||
try:
|
||||
log.info("Connecting...")
|
||||
self.connection.connect(self.address)
|
||||
except OSError:
|
||||
except OSError as e:
|
||||
log.warning(e) # TODO: Remove
|
||||
self.connection.close()
|
||||
time.sleep(1)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue