- commit
- b28fdd3eebce52f9995e77b02369d206631b5787
- parent
- 6534f18fc158bb70229480c704f7c68f6521dd25
- Author
- Tobias Bengfort <tobias.bengfort@gmx.net>
- Date
- 2015-05-08 13:40
no global error handling this only hides useful debug information
Diffstat
| M | cctool.py | 12 | ++---------- |
1 files changed, 2 insertions, 10 deletions
diff --git a/cctool.py b/cctool.py
@@ -447,11 +447,7 @@ def main(): 447 447 informat = get_informat(filename) 448 448 449 449 infile = sys.stdin if filename == '-' else open(filename, 'rb')450 -1 try:451 -1 data += informats[informat]().load(infile)452 -1 except Exception as err:453 -1 log.error(err)454 -1 sys.exit(1)-1 450 data += informats[informat]().load(infile) 455 451 if filename != '-': 456 452 infile.close() 457 453 @@ -462,11 +458,7 @@ def main(): 462 458 data = sorted(data, key=lambda x: x[args.sort]) 463 459 464 460 outfile = sys.stdout if args.output is None else open(args.output, 'wb')465 -1 try:466 -1 outformats[outformat]().dump(data, outfile)467 -1 except Exception as err:468 -1 log.error(err)469 -1 sys.exit(1)-1 461 outformats[outformat]().dump(data, outfile) 470 462 471 463 472 464 if __name__ == '__main__':