diff options
-rw-r--r-- | anteater/src/patch_scan.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/anteater/src/patch_scan.py b/anteater/src/patch_scan.py index 1deb68f..873c069 100644 --- a/anteater/src/patch_scan.py +++ b/anteater/src/patch_scan.py @@ -55,8 +55,12 @@ def prepare_patchset(project, patchset): licence_ignore = lists.licence_ignore() # Open patch set to get file list - fo = open(patchset, 'r') - lines = fo.readlines() + try: + fo = open(patchset, 'r') + lines = fo.readlines() + except IOError: + logger.error('%s does not exist', patchset) + sys.exit(1) for line in lines: patch_file = line.strip('\n') |