hpr / py-race-results

Automatically exported from code.google.com/p/py-race-results
MIT License
1 stars 0 forks source link

Local racelist option fails with newlines #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have a local racelist with a newline at the end.
2. crrr --rl list --ml ~/ftc/ftc.csv -o results.html

What is the expected output? What do you see instead?
Traceback (most recent call last):
  File "/Users/jevans/p/lib/python3.2/site-packages/rr/crrr.py", line 487, in compile_local_results
    self.local_tidy(racefile)
  File "/Users/jevans/p/lib/python3.2/site-packages/rr/crrr.py", line 466, in local_tidy
    with open(html_file, 'r', encoding='utf-8') as fp:
IOError: [Errno 2] No such file or directory: 'Mar10_16thAn_set1.shtml\n'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/jevans/p/bin/crrr", line 70, in <module>
    o.run()
  File "/Users/jevans/p/lib/python3.2/site-packages/rr/crrr.py", line 40, in run
    self.compile_results()
  File "/Users/jevans/p/lib/python3.2/site-packages/rr/crrr.py", line 74, in compile_results
    self.compile_local_results()
  File "/Users/jevans/p/lib/python3.2/site-packages/rr/crrr.py", line 491, in compile_local_results
    self.logger.debug(fmt % line)
NameError: global name 'line' is not defined

Please use labels and text to provide additional information.

Original issue reported on code.google.com by John.G.E...@gmail.com on 10 Mar 2013 at 8:18

GoogleCodeExporter commented 9 years ago

Original comment by John.G.E...@gmail.com on 10 Mar 2013 at 9:07