1
0

exception formatting: use repr(e) instead of str(e) in messages

repr(e) is more useful
This commit is contained in:
SomberNight
2019-01-17 17:16:19 +01:00
parent 44a2ceab3c
commit d77e4d8f5d
6 changed files with 7 additions and 7 deletions

View File

@@ -267,7 +267,7 @@ class Interface(PrintError):
try:
return await func(self, *args, **kwargs)
except GracefulDisconnect as e:
self.print_error("disconnecting gracefully. {}".format(e))
self.print_error("disconnecting gracefully. {}".format(repr(e)))
finally:
await self.network.connection_down(self)
self.got_disconnected.set_result(1)