From b6f278c8860a1724a07c1cdd8523ee58bbea3365 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Fri, 27 Sep 2013 17:07:26 -0700 Subject: [PATCH] ceph.in: fix missing exception variable in failure to open -o file Fixes: #6424 Signed-off-by: Dan Mick --- src/ceph.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph.in b/src/ceph.in index e4d4cf10344f1..075ec80c20bcd 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -644,7 +644,7 @@ def main(): if parsed_args.output_file: try: outf = open(parsed_args.output_file, 'w') - except: + except Exception as e: print >> sys.stderr, \ 'Can\'t open output file {0}: {1}'.\ format(parsed_args.output_file, e) -- 2.39.5