From 7c68e9d022b4958b5c2f4aeac213861302eacb4d Mon Sep 17 00:00:00 2001 From: Phill Ridout Date: Sun, 21 Jan 2018 07:40:26 +0000 Subject: [PATCH] pep --- openlp/core/lib/serviceitem.py | 2 +- openlp/core/ui/servicemanager.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openlp/core/lib/serviceitem.py b/openlp/core/lib/serviceitem.py index 054697b19..94a0e19f1 100644 --- a/openlp/core/lib/serviceitem.py +++ b/openlp/core/lib/serviceitem.py @@ -539,7 +539,7 @@ class ServiceItem(RegistryProperties): Confirms if the ServiceItem uses a file """ return self.service_item_type == ServiceItemType.Image or \ - (self.service_item_type == ServiceItemType.Command and not self.is_capable(ItemCapabilities.IsOptical)) + (self.service_item_type == ServiceItemType.Command and not self.is_capable(ItemCapabilities.IsOptical)) def is_text(self): """ diff --git a/openlp/core/ui/servicemanager.py b/openlp/core/ui/servicemanager.py index e4ca1d6fe..0946f2571 100644 --- a/openlp/core/ui/servicemanager.py +++ b/openlp/core/ui/servicemanager.py @@ -599,7 +599,8 @@ class ServiceManager(QtWidgets.QWidget, RegistryBase, Ui_ServiceManager, LogMixi self.log_exception('Failed to save service to disk: {name}'.format(name=temp_file.name)) self.main_window.error_message( translate('OpenLP.ServiceManager', 'Error Saving File'), - translate('OpenLP.ServiceManager', 'There was an error saving your file.\n\n{error}').format(error=error)) + translate('OpenLP.ServiceManager', + 'There was an error saving your file.\n\n{error}').format(error=error)) return self.save_file_as() self.main_window.finished_progress_bar() self.application.set_normal_cursor()