Remove try: ... finally: pass
The handle_errors decorator handles exceptions, try ... finally ... is redundant Change-Id: I8142dc10b2e8300aedaa59de77839e1885568cc6
This commit is contained in:
parent
9a4e706e94
commit
840955c896
|
@ -191,7 +191,6 @@ class CreateForm(forms.SelfHandlingForm):
|
|||
data['schedule_count']
|
||||
)
|
||||
|
||||
try:
|
||||
api.cron_trigger_create(
|
||||
request,
|
||||
data['name'],
|
||||
|
@ -206,6 +205,3 @@ class CreateForm(forms.SelfHandlingForm):
|
|||
messages.success(request, msg)
|
||||
|
||||
return True
|
||||
|
||||
finally:
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue