Added extra error check

This commit is contained in:
Tomas Groth 2018-02-04 21:47:24 +01:00
parent b5cd109870
commit b819e79a70
1 changed files with 3 additions and 0 deletions

View File

@ -242,6 +242,9 @@ class ImpressDocument(PresentationDocument):
except:
log.warning('Failed to load presentation {url}'.format(url=url))
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.Display = ScreenList().current['number'] + 1
self.control = None