commit 097a95c4185b086dbac67e0d2618bd15b9f41521 Author: aagbsn aagbsn@extc.org Date: Thu Sep 1 13:53:22 2011 -0700
NOTICE when git repo not found rather than ERROR --- TorUtil.py | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/TorUtil.py b/TorUtil.py index 50258e5..73ea2a8 100644 --- a/TorUtil.py +++ b/TorUtil.py @@ -426,7 +426,7 @@ def get_git_version(path_to_repo): ref = f.readline().strip().split(' ') f.close() except IOError, e: - plog('ERROR', e) + plog('NOTICE', 'Git Repo at %s Not Found' % path_to_repo) return ('unknown','unknown') try: f = open(path_to_repo+ref[1]) @@ -435,7 +435,8 @@ def get_git_version(path_to_repo): f.close() return (branch, head) except IOError, e: - plog('ERROR', e) + pass except IndexError, e: - plog('ERROR', e) + pass + plog('NOTICE', 'Git Repo at %s Not Found' % path_to_repo) return ('unknown','unknown')