]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: fix missing exception variable in failure to open -o file 658/head
authorDan Mick <dan.mick@inktank.com>
Sat, 28 Sep 2013 00:07:26 +0000 (17:07 -0700)
committerDan Mick <dan.mick@inktank.com>
Sat, 28 Sep 2013 00:07:26 +0000 (17:07 -0700)
Fixes: #6424
Signed-off-by: Dan Mick <dan.mick@inktank.com>
src/ceph.in

index e4d4cf10344f197ba2f0a2af9db5c60a1f33a23d..075ec80c20bcdd579842c0ed585fb65b3f6bc103 100755 (executable)
@@ -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)