Fixes UnboundLocalError issue. 09/36609/2
authorlhinds <lhinds@redhat.com>
Tue, 27 Jun 2017 20:12:06 +0000 (21:12 +0100)
committerlhinds <lhinds@redhat.com>
Tue, 27 Jun 2017 20:17:15 +0000 (21:17 +0100)
commitb1bac4d7cb56e0b06dda64dc8b3305d04768eb14
tree4660b573e7979bc802b3e349f90e8ca6e53c093f
parentb044e0f17700ae3f7621734daf5c4e502b362dde
Fixes UnboundLocalError issue.

If no hash exists in the project exception file, then `return
binary_hash` is Nonetype which throws an Unbound variable error.

This change adds some dummy text to allow try / except statements
to deal with missing entries in project exception files.

JIRA: RELENG-264

Change-Id: I98fb4b01a2930b350794326d4cf735c8e014e00a
Signed-off-by: lhinds <lhinds@redhat.com>
anteater/src/get_lists.py
anteater/src/patch_scan.py