Browse Source

Merge #891: ob-watcher.py: gracefully exit on old python versions

ae57657 ob-watcher.py: gracefully exit on old python versions (undeath)
master
Adam Gibson 5 years ago
parent
commit
149ae3dae6
No known key found for this signature in database
GPG Key ID: 141001A1AF77F20B
  1. 4
      scripts/obwatch/ob-watcher.py

4
scripts/obwatch/ob-watcher.py

@ -17,6 +17,10 @@ from decimal import Decimal
from optparse import OptionParser
from twisted.internet import reactor
if sys.version_info < (3, 7):
print("ERROR: this script requires at least python 3.7")
exit(1)
from jmbase.support import EXIT_FAILURE
from jmbase import get_log

Loading…
Cancel
Save