Code Review
/
releng-anteater.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixes UnboundLocalError issue.
[releng-anteater.git]
/
anteater
/
src
/
get_lists.py
diff --git
a/anteater/src/get_lists.py
b/anteater/src/get_lists.py
index
d7b0c47
..
b7b9aea
100644
(file)
--- a/
anteater/src/get_lists.py
+++ b/
anteater/src/get_lists.py
@@
-83,9
+83,13
@@
class GetLists(object):
file_name = os.path.basename(patch_file)
try:
binary_hash = (yl['binaries'][project][file_name])
file_name = os.path.basename(patch_file)
try:
binary_hash = (yl['binaries'][project][file_name])
+ return binary_hash
except KeyError:
except KeyError:
- logger.error('Key Error processing binary hash values')
- return binary_hash
+ logger.info('No checksum entries found for {0}'.
+ format(file_name))
+ binary_hash = 'null'
+ return binary_hash
+
def file_audit_list(self, project):
project_list = False
def file_audit_list(self, project):
project_list = False