Removed unnecessary checks

This commit is contained in:
2024-05-30 23:17:58 +02:00
committed by Profitroll
parent b5bfbcd375
commit 7293cafd2e
3 changed files with 10 additions and 21 deletions

View File

@@ -72,12 +72,9 @@ async def command_setup(app: PyroClient, message: Message):
await user.update_location(location.id)
try:
user_time = user.get_reminder_time().strftime(
app._("time", "formats", locale=user.locale)
)
except AttributeError:
user_time = "N/A"
user_time = user.get_reminder_time().strftime(
app._("time", "formats", locale=user.locale)
)
await message.reply_text(
app._("setup_finished", "messages", locale=user.locale).format(

View File

@@ -88,12 +88,9 @@ async def command_start(app: PyroClient, message: Message):
await user.update_location(location.id)
try:
user_time = user.get_reminder_time().strftime(
app._("time", "formats", locale=user.locale)
)
except AttributeError:
user_time = "N/A"
user_time = user.get_reminder_time().strftime(
app._("time", "formats", locale=user.locale)
)
await answer.reply_text(
app._("start_selection_yes", "messages", locale=user.locale).format(