Issue #355: Infinite loop in find_repository_root() with missing files (blais/beancount)

3 views
Skip to first unread message

Martin Michlmayr

unread,
Dec 24, 2018, 11:10:02 AM12/24/18
to bean...@googlegroups.com
New issue 355: Infinite loop in find_repository_root() with missing files
https://bitbucket.org/blais/beancount/issues/355/infinite-loop-in-find_repository_root-with

Martin Michlmayr:

find_repository_root() in beancount/utils/test_utils.py does:

```
while not all(path.exists(path.join(filename, sigfile))
for sigfile in ('PKGINFO', 'COPYING', 'README')):
filename = path.dirname(filename)
```

This ends up in an infinite loop looking at `/` if for some reason someone accidentally
removed one of these 3 files.


Reply all
Reply to author
Forward
0 new messages