From 9eb45dc6efcbf8ee1915719fc165aae5cb469fb0 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Sat, 23 Feb 2013 18:36:27 +0100 Subject: add python version check --- invoice/generate-invoice.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/invoice/generate-invoice.py b/invoice/generate-invoice.py index 8ed8bd1..c89e047 100755 --- a/invoice/generate-invoice.py +++ b/invoice/generate-invoice.py @@ -11,6 +11,10 @@ from config import * db = DB() +if sys.hexversion < 0x03000000: + print("Please use Python 3.0 or newer!") + sys.exit() + def generate_invoice_tex(user, title, subject, start=0, stop=0, temporary=False): userinfo = db.get_user_info(user) -- cgit v1.2.3