Skip to content

Commit 4e93f88

Browse files
committed
Update a notification for the Recorder Desktop
1 parent ba5eeb4 commit 4e93f88

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

seleniumbase/console_scripts/sb_recorder.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@
1515
import sys
1616
from seleniumbase.fixtures import page_utils
1717

18-
if sys.version_info[0] < 3:
19-
raise Exception("This script is for Python 3 only!")
18+
if sys.version_info <= (3, 7):
19+
current_version = ".".join(str(ver) for ver in sys.version_info[:3])
20+
raise Exception(
21+
"\n* Recorder Desktop requires Python 3.7 or newer!"
22+
"\n*** You are currently using Python %s" % current_version
23+
)
2024
import tkinter as tk # noqa: E402
2125
from tkinter import messagebox # noqa: E402
2226

0 commit comments

Comments
 (0)