gitstats: Make use of getattr instead of just trying
commit24b897d576684ce28f1f701f5b788500d9843304
authorSverre Rabbelier <sverre@rabbelier.nl>
Sun, 20 Jul 2008 20:37:02 +0000 (20 22:37 +0200)
committerSverre Rabbelier <sverre@rabbelier.nl>
Sun, 20 Jul 2008 21:30:21 +0000 (20 23:30 +0200)
tree7dbd34cb4dc246c6ac68c40997a6f3bfa711a703
parent9ad70f8064a4e4e08bf8d62d962e2b9f088a8951
gitstats: Make use of getattr instead of just trying

The idea was to check if an option was set, but if it was
not set, we would die because 'not foo.bar' does not work
if foo doesn to have a bar property. Instead, we want to
use 'not getattr(foo, "bar", None)'.
src/git_stats/bug.py