Skip to content

Commit b6bae58

Browse files
Update concoredocker.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 073c6a6 commit b6bae58

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

concoredocker.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,11 @@ def read(port_identifier, name, initstr_val):
201201
try:
202202
default_return_val = literal_eval(initstr_val)
203203
except (SyntaxError, ValueError):
204-
pass
204+
# Failed to parse initstr_val; fall back to the original string value.
205+
logging.debug(
206+
"Could not parse initstr_val %r with literal_eval; using raw string as default.",
207+
initstr_val
208+
)
205209

206210
if isinstance(port_identifier, str) and port_identifier in zmq_ports:
207211
zmq_p = zmq_ports[port_identifier]

0 commit comments

Comments
 (0)