Skip to content

Commit 9868a9d

Browse files
caberoscaberos
authored andcommitted
fix the tox tool
1 parent 16cb806 commit 9868a9d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

SoftLayer/CLI/hardware/add_notification.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ def cli(env, identifier, users):
2424
table.align['Username'] = 'l'
2525

2626
for user in users:
27-
try:
28-
notification = hardware.add_notification(identifier, user)
29-
print(notification)
27+
notification = hardware.add_notification(identifier, user)
28+
if notification:
3029
table.add_row([notification['id'], notification['hardware']['fullyQualifiedDomainName'],
3130
notification['user']['username'], notification['user']['email'],
3231
notification['user']['firstName'], notification['user']['lastName']])
33-
34-
except Exception:
32+
else:
3533
raise exceptions.CLIAbort("User not found: {}.".format(user))
3634
env.fout(table)

0 commit comments

Comments
 (0)