Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 66609db

Browse files
committed
Add check for Python version
1 parent eb48419 commit 66609db

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

openbazaard.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@ def shutdown():
204204
btcPrice.join(1)
205205

206206
if __name__ == "__main__":
207+
208+
try:
209+
eval("if sys.version_info < (2, 12)")
210+
except Exception:
211+
print "You must use python 2.9 or greater"
212+
sys.exit(0)
213+
207214
# pylint: disable=anomalous-backslash-in-string
208215
class OpenBazaard(Daemon):
209216
def run(self, *args):

0 commit comments

Comments
 (0)