diff --git a/wasp/apps/alarm.py b/wasp/apps/alarm.py index dc8eb29..6ba0d9b 100644 --- a/wasp/apps/alarm.py +++ b/wasp/apps/alarm.py @@ -140,6 +140,8 @@ class AlarmApp: self._set_pending_alarms() try: + if self.num_alarms == 0: + return with open("alarms", "w") as f: for n in range(self.num_alarms): al = self.alarms[n]