Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleinrotti committed Apr 20, 2022
1 parent cc474a8 commit 0efb7b2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/senertec/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def __init__(self, level=logging.WARN):
self.__is_ws_connected__ = False
self.__messages__ = [str()]
self.__thread__ = None
self.__should_stop__ = False
self.ws = None
self.boards = [board()]
"""All available boards with datapoints which can be used in request function"""
Expand Down Expand Up @@ -137,7 +136,7 @@ def __init__(self, dataNames=None, email: str = None, password: str = None, lang
self.__errorTranslations__ = []
self.__connectedUnit__ = []
self.messagecallback = (canipValue())
"""Set your callback function to get the data values. Function has to be overloaded with data type ``canipvalue``"""
"""Set your callback function to get the data values. Function has to be overloaded with data type ``canipValue``"""
self.logger = logging.getLogger(__name__)
self.logger.setLevel(level)

Expand Down Expand Up @@ -165,8 +164,8 @@ def __get__(self, urlPath: str):
response = requests.get(
url, headers=self.__create_headers__(), cookies=self.__clientCookie__)
if(response.status_code >= 400 and response.status_code <= 599):
logger.error("Error in get request by function: " + inspect.stack()
[1].function + " HTTP response: " + response.text)
logger.error("Error in get request by function: {" + inspect.stack()
[1].function + "} HTTP response: " + response.text)
return response

def __parsedatapoints__(self):
Expand Down

0 comments on commit 0efb7b2

Please sign in to comment.