Skip to content

Commit 017615b

Browse files
committed
Following flake8 linting format
1 parent 1f3da6e commit 017615b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pomodoro_timer/pomodoro_timer.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
try:
1010
import winsound
1111
ctypes.windll.shcore.SetProcessDpiAwareness(True)
12-
except:
12+
except Exception:
1313
pass
1414

15-
1615
root = Tk()
1716
root.config(bg="Salmon")
1817
root.geometry('600x500')
@@ -73,11 +72,10 @@ def start_timer(options, cycle_limit=5):
7372
root.update_idletasks()
7473
time.sleep(1)
7574
temp_work -= 1
76-
7775
try:
7876
winsound.Beep(323, 250)
7977
winsound.Beep(583, 250)
80-
except:
78+
except Exception:
8179
os.system('tput bel')
8280

8381
while temp_break:
@@ -90,7 +88,7 @@ def start_timer(options, cycle_limit=5):
9088
try:
9189
winsound.Beep(523, 250)
9290
winsound.Beep(783, 250)
93-
except:
91+
except Exception:
9492
os.system('tput bel')
9593
cycles += 1
9694

0 commit comments

Comments
 (0)