amondnet / amondnet/gitinspector
Zero division error
- Ngôn ngữ chính
- Python
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
```
What steps will reproduce the problem?
Below steps cannot be directly reproduced since the project it was measured by
gitinspector is proprietary.
1. Clone gitinspector.
2. Run gitinspector with following options:
python gitinspector/gitinspector.py --format=htmlembedded
--localize-output=true --file-types=java,xml,js,properties
../proprietary-project/ > stats.html
What is the expected output? What do you see instead?
Expected output: generated stats.html file for proprietary-project repository.
Instead ZeroDivisionError was encountered:
Traceback (most recent call last):
File "gitinspector/gitinspector.py", line 194, in
main()
File "gitinspector/gitinspector.py", line 182, in main
__run__.output()
File "gitinspector/gitinspector.py", line 76, in output
outputable.output(blame.BlameOutput(self.hard, self.useweeks))
File "/home/karma/git/gitinspector/gitinspector/outputable.py", line 36, in output
outputable.output_html()
File "/home/karma/git/gitinspector/gitinspector/blame.py", line 243, in output_html
blame_xml += "" + ("{0:.1f}".format(Blame.get_stability(entry[0], entry[1].rows, self.changes)) + "")
File "/home/karma/git/gitinspector/gitinspector/blame.py", line 175, in get_stability
return 100.0 * blamed_rows / changes.get_authorinfo_list()[author].insertions
ZeroDivisionError: float division by zero
Please use labels and text to provide additional information.
If submitting a patch, you guarantee that you are the original author of
the work or that the patch is based on code from a compatible license.
```
Original issue reported on code.google.com by `kamila.chyla` on 15 Apr 2015 at 6:17
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.