v1.3.1 bugfix release
🛠 Changelog (v1.3.1)
Fixed
• 🐛 Crash Fix: Resolved UnboundLocalError: cannot access local variable 'data' in get_last_state() when state file is missing or unreadable.
• Introduced safer default initialization of data variable and ensured a return block is always hit.
• Prevents script termination during Pushover/Discord/ntfy alerts when state file is empty or malformed.
• 🧪 More robust error logging with file content preview when corrupted.
Full Changelog: v1.3.0...v1.3.1