diff --git a/pyIsis/connection.py b/pyIsis/connection.py index b3ac825..9fa1102 100644 --- a/pyIsis/connection.py +++ b/pyIsis/connection.py @@ -45,6 +45,9 @@ def __init__(self, hostname, username, password): self.hostname = hostname self.username = username self.password = password + + # must be present for __del__ to gracefully exit failed session + self.token = None url = ISIS_SOAP_URL.format(hostname=self.hostname, port=ISIS_SOAP_PORT)