Commit b212ced
Carry transport local-name events on a throws-configured bus
The zeroconf transport's .local hostname events moved onto a new bus during
the KolibriBroadcast split, but it was instantiated as a plain
magicbus.base.Bus, which has no throws attribute. Bus.publish references
self.throws in its listener error path, so any exception raised by a
local-name listener (LocalHostnameListener -> sync_local_hostnames.enqueue)
surfaced as a masking AttributeError instead of propagating.
Restore the original KolibriBroadcastEvents behaviour with a LocalNameEvents
bus subclass that sets throws = (Exception,), mirroring NetworkDiscoveryEvents.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 79e4b52 commit b212ced
2 files changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
411 | 421 | | |
412 | 422 | | |
413 | 423 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
524 | 539 | | |
525 | 540 | | |
526 | 541 | | |
| |||
541 | 556 | | |
542 | 557 | | |
543 | 558 | | |
544 | | - | |
| 559 | + | |
545 | 560 | | |
546 | 561 | | |
547 | 562 | | |
| |||
0 commit comments