diff options
| author | Yuval Adam <_@yuv.al> | 2021-05-18 18:58:38 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2021-05-18 18:58:38 +0300 |
| commit | ddaf888e477253b5dfcfa6016b44e4ab5ec51b47 (patch) | |
| tree | d37f5edf38f426d133a3390e3f57eb3c9c16b4fa | |
| parent | 34057071555ac032103d0dde0d3241d0b9c244dd (diff) | |
Fix formatting
| -rw-r--r-- | alarmpy/alarmpy.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/alarmpy/alarmpy.py b/alarmpy/alarmpy.py index 2a752d5..4fbe399 100644 --- a/alarmpy/alarmpy.py +++ b/alarmpy/alarmpy.py @@ -27,7 +27,7 @@ class Alarm: alarm_id=False, repeat_alarms=False, quiet=False, - desktop_notifications=False + desktop_notifications=False, ): self.language = language self.polling_delay = polling_delay @@ -37,7 +37,9 @@ class Alarm: self.quiet = quiet if desktop_notifications and not os.path.exists("/usr/bin/osascript"): - self.output_error("Desktop notifications are currently only available for MacOS") + self.output_error( + "Desktop notifications are currently only available for MacOS" + ) desktop_notifications = False self.desktop_notifications = desktop_notifications @@ -135,7 +137,7 @@ class Alarm: click.secho(f"\t{cities_str} ", fg="red") if self.desktop_notifications: os.system( - f"/usr/bin/osascript -e 'display notification \"{cities_str}\" with title \"Alarms at {area}\"'" + f'/usr/bin/osascript -e \'display notification "{cities_str}" with title "Alarms at {area}"\'' ) if self.alarm_id: click.secho(f"({alarm_id})") |
