Skip to content

Commit 0d0ed39

Browse files
committed
Fix genTL log message spacing and tidy test
Adjust Harvester.update() error log string concatenation in gentl_backend.py to ensure proper spaces between message parts. Also remove an extraneous comment line from the gentl backend test to clean up test output.
1 parent f8c0999 commit 0d0ed39

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

dlclivegui/cameras/backends/gentl_backend.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,9 @@ def _build_harvester_for_discovery(
399399
harvester.update()
400400
except Exception as exc:
401401
LOG.error(
402-
"Harvester.update() failed during discovery: %s "
403-
"Device list not usable, treating as discovery failure."
404-
"CTIs loaded before failure : %s",
402+
"Harvester.update() failed during discovery: %s"
403+
" Device list not usable, treating as discovery failure."
404+
" CTIs loaded before failure : %s",
405405
exc,
406406
loaded,
407407
)

tests/cameras/backends/test_gentl_backend.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,6 @@ def test_open_persists_cti_load_diagnostics_all_success(patch_gentl_sdk, gentl_s
708708
ns = settings.properties["gentl"]
709709
assert ns["cti_files"] == [str(c1), str(c2)]
710710
assert ns["cti_files_loaded"] == [str(c1), str(c2)]
711-
# If dict:
712711
assert ns["cti_files_failed"] == []
713712

714713
be.close()

0 commit comments

Comments
 (0)