Skip to content

Commit 0a64bcb

Browse files
committed
Be sensible, don't just print name as None
1 parent 45e724e commit 0a64bcb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

simvue/sender.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ def sender():
9898
run_init = get_json(f"{current}/run.json")
9999
start_time = os.path.getctime(f"{current}/run.json")
100100

101-
logger.info('Considering run with name %s and id %s', run_init['name'], id)
101+
if run_init['name']:
102+
logger.info('Considering run with name %s and id %s', run_init['name'], id)
103+
else:
104+
logger.info('Considering run with no name yet and id %s', id)
102105

103106
remote = Remote(run_init['name'], id, suppress_errors=True)
104107

@@ -111,7 +114,7 @@ def sender():
111114
if not os.path.isfile(created_file):
112115
name = remote.create_run(run_init)
113116
if name:
114-
logger.info('Creating run with name %s', run_init['name'])
117+
logger.info('Creating run with name %s', name)
115118
run_init = add_name(name, run_init, f"{current}/run.json")
116119
create_file(created_file)
117120
else:

0 commit comments

Comments
 (0)