forked from openlp/openlp
Added extra error check
This commit is contained in:
parent
b5cd109870
commit
b819e79a70
@ -242,6 +242,9 @@ class ImpressDocument(PresentationDocument):
|
|||||||
except:
|
except:
|
||||||
log.warning('Failed to load presentation {url}'.format(url=url))
|
log.warning('Failed to load presentation {url}'.format(url=url))
|
||||||
return False
|
return False
|
||||||
|
if self.document is None:
|
||||||
|
log.warning('Presentation {url} could not be loaded'.format(url=url))
|
||||||
|
return False
|
||||||
self.presentation = self.document.getPresentation()
|
self.presentation = self.document.getPresentation()
|
||||||
self.presentation.Display = ScreenList().current['number'] + 1
|
self.presentation.Display = ScreenList().current['number'] + 1
|
||||||
self.control = None
|
self.control = None
|
||||||
|
Loading…
Reference in New Issue
Block a user