From cff89252a99633641189ee5232dabfa7dfeff001 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 30 Jun 2010 23:06:21 -0400 Subject: [PATCH] Don't worry if we can't save a Prof. --- sitecore/prof/import.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sitecore/prof/import.py b/sitecore/prof/import.py index e488910..95e07ab 100644 --- a/sitecore/prof/import.py +++ b/sitecore/prof/import.py @@ -112,7 +112,12 @@ class ProfessorAdder (object): #granddad,field = self.s.find_field('Headshot:') #granddad.find_element_by_link_text('Properties') # TODO, set width/height - self.s.publish_section('Added/updated Prof. %s' % prof.name.last) + try: + self.s.publish_section('Added/updated Prof. %s' % prof.name.last) + except NoSuchElementException: + self.s.logger.info( + 'Problem saving/publishing %s (locked by someone else?).' + ' Continuing.') def create_prof_page(self, name): try: -- 2.26.2