From 35c41a705cbc25ded388f1d562f184bf8994080e Mon Sep 17 00:00:00 2001 From: bliepp <12013202+bliepp@users.noreply.github.com> Date: Sun, 15 Mar 2026 22:27:54 +0100 Subject: [PATCH] Bugfix: --addr assert checking (#51) --- niimprint/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/niimprint/__main__.py b/niimprint/__main__.py index cee08ab..6265e38 100644 --- a/niimprint/__main__.py +++ b/niimprint/__main__.py @@ -65,7 +65,7 @@ def print_cmd(model, conn, addr, density, rotate, image, verbose): ) if conn == "bluetooth": - assert conn is not None, "--addr argument required for bluetooth connection" + assert addr is not None, "--addr argument required for bluetooth connection" addr = addr.upper() assert re.fullmatch(r"([0-9A-F]{2}:){5}([0-9A-F]{2})", addr), "Bad MAC address" transport = BluetoothTransport(addr)