Skip to content

Commit

Permalink
Update set command
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Nov 22, 2024
1 parent a09f805 commit 1af3f3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion worldtimezone/extensions/world_clock_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@


def match_timezone(val: str):
return [x for x in COMMON_TIMEZONES if val.lower() in x.lower()]
if val == "":
return COMMON_TIMEZONES
return [x for x in pytz.all_timezones if val.lower() in x.lower()][:15]


class DBBaseModel(peewee.Model):
Expand Down
2 changes: 1 addition & 1 deletion worldtimezone/extensions/world_clock_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async def create_embed(
_ = await bot.rest.edit_message(
channel_world_clock, message_world_clock, None, embeds=embeds
)
except hikari.errors.ForbiddenError:
except hikari.ForbiddenError:
print(f"Failed update message: {guild.discord_id}")
else:
print(f"Failed update message: {guild.discord_id}")
Expand Down

0 comments on commit 1af3f3d

Please sign in to comment.