aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/moderation/defcon.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/moderation/defcon.py b/bot/exts/moderation/defcon.py
index 4b25c36df..00b108feb 100644
--- a/bot/exts/moderation/defcon.py
+++ b/bot/exts/moderation/defcon.py
@@ -157,13 +157,13 @@ class Defcon(Cog):
}
)
- self.days = timedelta(days=days)
- self.update_notifier()
-
except Exception as err:
log.exception("Unable to update DEFCON settings.")
error = err
finally:
+ self.days = timedelta(days=days)
+ self.update_notifier()
+
await ctx.send(self.build_defcon_msg(action, error))
await self.send_defcon_log(action, ctx.author, error)