We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f3da6e commit 017615bCopy full SHA for 017615b
pomodoro_timer/pomodoro_timer.py
@@ -9,10 +9,9 @@
9
try:
10
import winsound
11
ctypes.windll.shcore.SetProcessDpiAwareness(True)
12
-except:
+except Exception:
13
pass
14
15
-
16
root = Tk()
17
root.config(bg="Salmon")
18
root.geometry('600x500')
@@ -73,11 +72,10 @@ def start_timer(options, cycle_limit=5):
73
72
root.update_idletasks()
74
time.sleep(1)
75
temp_work -= 1
76
77
78
winsound.Beep(323, 250)
79
winsound.Beep(583, 250)
80
- except:
+ except Exception:
81
os.system('tput bel')
82
83
while temp_break:
@@ -90,7 +88,7 @@ def start_timer(options, cycle_limit=5):
90
88
91
89
winsound.Beep(523, 250)
92
winsound.Beep(783, 250)
93
94
95
cycles += 1
96
0 commit comments