From: W. Trevor King Date: Thu, 1 Jul 2010 03:06:21 +0000 (-0400) Subject: Don't worry if we can't save a Prof. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cff89252a99633641189ee5232dabfa7dfeff001;p=sitecorepy.git Don't worry if we can't save a Prof. --- 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: