[skip ci](shards): fix issue to show exception messages in error log (#2115)

Signed-off-by: SkyYang <mooncity.sky@163.com>
This commit is contained in:
SkyYang 2020-04-25 20:40:30 +08:00 committed by GitHub
parent fc96165817
commit 29a4d58432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,11 @@ class BaseException(Exception):
self.message = self.__class__.__name__ if not message else message
self.metadata = metadata
def __repr__(self):
return self.message
__str__ = __repr__
class ConnectionConnectError(BaseException):
code = codes.CONNECT_ERROR_CODE