Skip to content

Commit

Permalink
Fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
eldoo committed Feb 23, 2023
1 parent f9b1d67 commit 9af9224
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions PyOphidia/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def __init__(self, username="", password="", server="", port="", token="", read_
self.last_return_value = 0
self.last_error = ""
self.last_exec_time = 0.0

if local_mode is False:
if read_env is False:
self.username = username
Expand Down Expand Up @@ -185,7 +185,7 @@ def __init__(self, username="", password="", server="", port="", token="", read_
self.username = None
self.password = None
self.server = None
self.port = None
self.port = None

def __del__(self):
del self.api_mode
Expand Down Expand Up @@ -612,7 +612,7 @@ def resume_session(self, display=False):
"""

if self.local_mode is True:
raise RuntimeError("this function cannot be run when local_mode is set")
raise RuntimeError("this function cannot be run when local_mode is set")
if self.username is None or self.password is None or self.server is None or self.port is None:
raise RuntimeError("one or more login parameters are None")
query = "operator=oph_get_config;key=OPH_SESSION_ID;"
Expand Down
2 changes: 1 addition & 1 deletion PyOphidia/cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -3394,7 +3394,7 @@ def createScript(function):
from time import time

base_path = expanduser("~") + "/.ophidia/"
script_path = base_path + function.__name__ + str(int(time() * 10**6)) + ".py"
script_path = base_path + function.__name__ + str(int(time() * 10 ** 6)) + ".py"

try:
# Check if hidden folder exists or create it otherwise
Expand Down

0 comments on commit 9af9224

Please sign in to comment.