From: Dan Mick Date: Sat, 28 Sep 2013 00:07:26 +0000 (-0700) Subject: ceph.in: fix missing exception variable in failure to open -o file X-Git-Tag: mark-v0.70-wip~11^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b6f278c8860a1724a07c1cdd8523ee58bbea3365;p=ceph.git ceph.in: fix missing exception variable in failure to open -o file Fixes: #6424 Signed-off-by: Dan Mick --- diff --git a/src/ceph.in b/src/ceph.in index e4d4cf10344..075ec80c20b 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)