Skip to content

Commit

Permalink
type check
Browse files Browse the repository at this point in the history
  • Loading branch information
alpha-xone committed Sep 9, 2022
1 parent 262cc11 commit 5f0268c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions xbbg/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Intuitive Bloomberg data API"""
"""An intuitive Bloomberg API"""

__version__ = '0.7.7'
__version__ = '0.7.8a1'
2 changes: 1 addition & 1 deletion xbbg/core/conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def connect(max_attempt=3, auto_restart=True, **kwargs) -> blpapi.session.Sessio
if isinstance(kwargs.get('server_host', None), str):
sess_opts.setServerHost(serverHost=kwargs['server_host'])

if isinstance(kwargs.get('server_port', None), str):
if isinstance(kwargs.get('server_port', None), int):
sess_opts.setServerPort(serverPort=kwargs['server_port'])

if isinstance(kwargs.get('tls_options', None), blpapi.sessionoptions.TlsOptions):
Expand Down

0 comments on commit 5f0268c

Please sign in to comment.