Skip to content

Commit d4c5cbc

Browse files
committed
fix: Include gate name in logger warning
"Unknown OpType in BackendInfo: `%`, will omit from BackendInfo. Consider updating your pytket version."" is currently being emitted by this log line which is unhelpful as it doesn't actually tell you which gate is missing.
1 parent c89d8bf commit d4c5cbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

qnexus/models/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,8 @@ def to_pytket_backend_info(backend: StoredBackendInfo) -> BackendInfo:
385385
except AttributeError:
386386
logger.warning(
387387
"Unknown OpType in BackendInfo: `%`, will omit from BackendInfo."
388-
" Consider updating your pytket version."
388+
" Consider updating your pytket version.",
389+
gate,
389390
)
390391

391392
return BackendInfo(

0 commit comments

Comments
 (0)