CSV debug check inadvertently dropped

This commit is contained in:
Ross Scroggs
2015-12-22 16:39:56 -08:00
parent 5f2c2103a5
commit 6fd107c230

View File

@ -8982,6 +8982,9 @@ try:
run_batch(items) run_batch(items)
sys.exit(0) sys.exit(0)
elif sys.argv[1].lower() == u'csv': elif sys.argv[1].lower() == u'csv':
if httplib2.debuglevel > 0:
print u'Sorry, CSV commands are not compatible with debug. Delete debug.gam and try again.'
sys.exit(1)
csv_filename = sys.argv[2] csv_filename = sys.argv[2]
f = openFile(csv_filename) f = openFile(csv_filename)
input_file = csv.DictReader(f) input_file = csv.DictReader(f)