mirror of
https://github.com/ceph/ceph
synced 2025-03-19 17:06:24 +00:00
Merge pull request #658 from dmick/next
ceph.in: fix missing exception variable in failure to open -o file Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
commit
d6ec7891eb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user