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
Implements file except handler for patchsets
[releng-anteater.git]
/
anteater
/
src
/
patch_scan.py
diff --git
a/anteater/src/patch_scan.py
b/anteater/src/patch_scan.py
index
1deb68f
..
873c069
100644
(file)
--- 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
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')
for line in lines:
patch_file = line.strip('\n')