﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	launchpad_bug
1758	tahoe check on LIT produces KeyError	kmarkley86	davidsarah	"If I ""tahoe check"" a path that is actually a DIR-IMM (an empty directory), or a LIT file, I get an exception:

{{{
Traceback (most recent call last):
  File ""/usr/local/bin/tahoe"", line 9, in <module>
    load_entry_point('allmydata-tahoe==1.9.1', 'console_scripts', 'tahoe')()
  File ""/usr/local/lib/python2.7/site-packages/allmydata/scripts/runner.py"", line 113, in run
    rc = runner(sys.argv[1:], install_node_control=install_node_control)
  File ""/usr/local/lib/python2.7/site-packages/allmydata/scripts/runner.py"", line 99, in runner
    rc = cli.dispatch[command](so)
  File ""/usr/local/lib/python2.7/site-packages/allmydata/scripts/cli.py"", line 589, in check
    rc = tahoe_check.check(options)
  File ""/usr/local/lib/python2.7/site-packages/allmydata/scripts/tahoe_check.py"", line 80, in check
    stdout.write(""Summary: %s\n"" % quote_output(data[""summary""], quotemarks=False))
KeyError: 'summary'
}}}

On the other hand, ""tahoe deep-check"" is fine for the directory, but gives an unhelpful error if given the path to a LIT file:

ERROR: 400 Bad Request
POST to file: bad t=stream-deep-check"	defect	closed	normal	1.10.0	code	1.9.1	fixed	check deep-check lit immutable error reviewed		
