File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 33from databento .common .bento import Bento , FileBento , MemoryBento
44from databento .historical .api import API_VERSION
55from databento .historical .client import Historical
6+ from databento .historical .error import (
7+ BentoClientError ,
8+ BentoError ,
9+ BentoHttpError ,
10+ BentoServerError ,
11+ )
612from databento .version import __version__ # noqa
713
814
915__all__ = [
1016 "API_VERSION" ,
1117 "Bento" ,
18+ "BentoClientError" ,
19+ "BentoError" ,
20+ "BentoHttpError" ,
21+ "BentoServerError" ,
1222 "FileBento" ,
1323 "Historical" ,
1424 "MemoryBento" ,
Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ def __init__(
3333 self .http_status = http_status
3434 self .http_body = http_body
3535 self .json_body = json_body
36- self ._message = message
36+ self .message = message
3737 self .headers = headers or {}
3838 self .request_id = self .headers .get ("request-id" , None )
3939
4040 def __str__ (self ):
41- msg = self ._message or "<empty message>"
41+ msg = self .message or "<empty message>"
4242 msg = f"{ self .http_status } { msg } "
4343 if self .request_id is not None :
4444 return f"Request { self .request_id } : { msg } "
@@ -50,7 +50,7 @@ def __repr__(self):
5050 f"{ type (self ).__name__ } ("
5151 f"request_id={ self .request_id } , "
5252 f"http_status={ self .http_status } , "
53- f"message={ self ._message } )"
53+ f"message={ self .message } )"
5454 )
5555
5656
You can’t perform that action at this time.
0 commit comments