summaryrefslogtreecommitdiffstats
path: root/django/engagementmanager/bus/messages/new_notification_message.py
diff options
context:
space:
mode:
authorEdan Binshtok <eb578m@intl.att.com>2017-11-19 11:42:55 +0200
committerEdan Binshtok <eb578m@intl.att.com>2017-11-19 11:43:15 +0200
commita9ef6f094a2bcf1fd7a0b7c2aaf814841db558ec (patch)
tree81a3f8436f9e6af07c3070c74f3a0543c2ca5eff /django/engagementmanager/bus/messages/new_notification_message.py
parentc169d08d437ccb62fd79ade759077b874f00b1c3 (diff)
Pep8 more fixes
Update base files to pass pep8 strict standarts. Issue-ID: VVP-25 Change-Id: If9ef80abf7fbc33ea181dfc2eb73c27ddd6ddc3e Signed-off-by: Edan Binshtok <eb578m@intl.att.com>
Diffstat (limited to 'django/engagementmanager/bus/messages/new_notification_message.py')
-rw-r--r--django/engagementmanager/bus/messages/new_notification_message.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/django/engagementmanager/bus/messages/new_notification_message.py b/django/engagementmanager/bus/messages/new_notification_message.py
index ce4ce06..1e33e7d 100644
--- a/django/engagementmanager/bus/messages/new_notification_message.py
+++ b/django/engagementmanager/bus/messages/new_notification_message.py
@@ -1,5 +1,5 @@
-#
-# ============LICENSE_START==========================================
+#
+# ============LICENSE_START==========================================
# org.onap.vvp/engagementmgr
# ===================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
@@ -36,14 +36,16 @@
# ============LICENSE_END============================================
#
# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-from engagementmanager.bus.messages.service_bus_base_message import ServiceBusBaseMessage
+from engagementmanager.bus.messages.service_bus_base_message import \
+ ServiceBusBaseMessage
from engagementmanager.models import Notification
from engagementmanager.utils.vvp_exceptions import VvpGeneralException
class NewNotificationMessage(ServiceBusBaseMessage):
def __init__(self, notification):
- if type(notification) is not Notification:
- raise VvpGeneralException("New notification event can be from type Notification only.")
+ if not isinstance(notification, Notification):
+ raise VvpGeneralException(
+ "New notification event can be from type Notification only.")
self.notification = notification