]> git.aero2k.de Git - urlbot-v3.git/commit
Fix Choose plugin crash when mampfdb.json is missing
authorThorsten <mail@aero2k.de>
Fri, 17 Jul 2026 20:23:29 +0000 (22:23 +0200)
committerThorsten <mail@aero2k.de>
Fri, 17 Jul 2026 20:23:29 +0000 (22:23 +0200)
commited9ab0c7a75ae2b227f26ea3e8346c85779663cd
tree7c6cc65e5c16d224276d82b35c6fdf4fc7bec42d
parent84f6d5d604a99d6a72529d45398a27f43bed4425
Fix Choose plugin crash when mampfdb.json is missing

open() raised an uncaught FileNotFoundError at class-definition time,
which is never caught by Worker.callback and crashed the whole worker
process on any deployment that hadn't manually placed the file (e.g.
munin, a fresh clone). Also ship mampfdb.json itself so the food-choice
feature works instead of silently falling back to an empty dict.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
mampfdb.json [new file with mode: 0644]
src/distbot/plugins/basic.py