Skip to content

Commit e0239a4

Browse files
committed
linted
1 parent 0206270 commit e0239a4

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/masonite/notification/Notifiable.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77

88
class Notifiable:
9-
"""Notifiable mixin allowing to send notification to a model. It's often used with the
9+
"""Notifiable mixin allowing to send
10+
notification to a model. It's often used with the
1011
User model.
1112
1213
Usage:
@@ -15,17 +16,18 @@ class Notifiable:
1516
def notify(self, notification, drivers=[], dry=False, fail_silently=False):
1617
"""Send the given notification."""
1718
from wsgi import application
18-
19+
1920
if hasattr(notification, "send"):
2021
notification.send(notification, drivers, dry, fail_silently)
21-
22+
2223
return application.make("notification").send(
2324
self, notification, drivers, dry, fail_silently
2425
)
2526

2627
def route_notification_for(self, driver):
27-
"""Get the notification routing information for the given driver. If method has not been
28-
defined on the model: for mail driver try to use 'email' field of model."""
28+
"""Get the notification routing information for the given driver.
29+
If method has not been defined on the model:
30+
for mail driver try to use 'email' field of model."""
2931
# check if routing has been specified on the model
3032
method_name = "route_notification_for_{0}".format(driver)
3133

@@ -41,7 +43,8 @@ def route_notification_for(self, driver):
4143
return self.email
4244
else:
4345
raise NotificationException(
44-
"Notifiable model does not implement {}".format(method_name)
46+
"Notifiable model "
47+
"does not implement {}".format(method_name)
4548
)
4649

4750
@has_many("id", "notifiable_id")

0 commit comments

Comments
 (0)