mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 03:01:21 +02:00
The post-print SD card cleanup used printer_manager.get_printer(), which returns a PrinterInfo object with only name and serial_number. The code then accessed .ip_address, .access_code, and .model, which don't exist on PrinterInfo — raising AttributeError on every print completion. The outer except Exception handler silently swallowed it at debug level. Result: uploaded gcode files were never deleted from the printer's SD card root. On some printers (e.g. P1S), files left in root auto-start on power cycle, causing phantom prints. Replaced with a DB query for the Printer model, matching the pattern used everywhere else in on_print_complete().