Even though we do not support it at all, some build servers
are attemtping to package ceph-deploy with that Python version. It
doesn't hurt to make it compatible
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
import os
from os import path
import traceback
+import sys
error_msg = """
stderr=subprocess.PIPE,
stdout=subprocess.PIPE
)
- except Exception as error:
+ except Exception:
+ # if building with python2.5 this makes it compatible
+ _, error, _ = sys.exc_info()
print_error([], traceback.format_exc(error).split('\n'))
raise SystemExit(1)