From 9be7773b651463a169e8ec051a634701a34a1cb0 Mon Sep 17 00:00:00 2001 From: Yonghee Han Date: Sat, 18 Jun 2016 13:29:39 +0900 Subject: [PATCH] exception images_count of the post image job Change-Id: I65246df6be192ee62109fa9d92b83f9c975e1537 --- job_post_image.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/job_post_image.py b/job_post_image.py index 8e327ce..960b7fa 100755 --- a/job_post_image.py +++ b/job_post_image.py @@ -65,11 +65,15 @@ def main(): build.update_info(info, project) saveinfo = build.get_info(project) - #print "images count : %s %s \n" % ( len(saveinfo['images']), saveinfo['images_count']) - if len(saveinfo['images']) == saveinfo['images_count']: - # clear chksnap flag - info['chksnap'] = '0' - build.update_info(info, project) + try: + #print "images count : %s %s \n" % ( len(saveinfo['images']), saveinfo['images_count']) + if len(saveinfo['images']) == saveinfo['images_count']: + # clear chksnap flag + info['chksnap'] = '0' + build.update_info(info, project) + + except: + print 'exception images_count' if __name__ == "__main__": sys.exit(main()) -- 2.7.4