Skip to content

Commit

Permalink
Pylint Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayasimha Raghavan authored and Jayasimha Raghavan committed Sep 15, 2023
1 parent 3d8e7d0 commit 2530f2c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unskript-ctl/unskript-client.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def run_ipynb(filename: str, status_list_of_dict: list = None):
'FAIL'
])
elif ids and CheckOutputStatus(payload.get('status')) == CheckOutputStatus.RUN_EXCEPTION:
if payload.get('error') != None:
if payload.get('error') is not None:
failed_objects = payload.get('error')
failed_result[get_action_name_from_id(ids[idx], nb.dict())] = failed_objects
result_table.append([
Expand Down Expand Up @@ -600,7 +600,7 @@ def create_jit_runbook(check_list: list):
:rtype: None
"""
nb = nbformat.v4.new_notebook()
if os.path.exists(os.environ.get('EXECUTION_DIR') + '/workspace') == False:
if os.path.exists(os.environ.get('EXECUTION_DIR') + '/workspace') is False:
os.makedirs(os.environ.get('EXECUTION_DIR') + '/workspace')

failed_notebook = os.environ.get('EXECUTION_DIR', '/unskript/data/execution').strip('"') + '/workspace/' + str(uuid.uuid4()) + '.ipynb'
Expand All @@ -611,7 +611,7 @@ def create_jit_runbook(check_list: list):
# No point proceeding further if the Credential is incomplete
if cred_name is None or cred_id is None:
print('\x1B[1;20;46m' + f"~~ Skipping {check.get('name')} As {cred_name} Credential is Not Active ~~" + '\x1B[0m')
if UNSKRIPT_GLOBALS.get('skipped') == None:
if UNSKRIPT_GLOBALS.get('skipped') is None:
UNSKRIPT_GLOBALS['skipped'] = []
UNSKRIPT_GLOBALS['skipped'].append([check.get('name'), s_connector])
continue
Expand Down Expand Up @@ -1559,7 +1559,7 @@ def stop_debug():
try:
if os.environ.get('EXECUTION_DIR') is None:
os.environ['EXECUTION_DIR'] = '/unskript/data/execution'
if os.path.exists(os.environ.get('EXECUTION_DIR')) == False:
if os.path.exists(os.environ.get('EXECUTION_DIR')) is False:
os.makedirs(os.environ.get('EXECUTION_DIR'))

load_or_create_global_configuration()
Expand Down

0 comments on commit 2530f2c

Please sign in to comment.