Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: mixed-line-ending
- id: end-of-file-fixer
Expand Down
4 changes: 3 additions & 1 deletion earthquake/earthquake.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ async def fetch_earthquakes(self, min_magnitude: float = 1.0) -> List[Dict]:
url = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.geojson"
async with self.session.get(url, timeout=10) as response:
if response.status != 200:
logger.error(f"USGS API returned {response.status}: {await response.text()}", exc_info=True)
logger.error(
f"USGS API returned {response.status}: {await response.text()}", exc_info=True
)
return []
data = await response.json(loads=orjson.loads)
if not isinstance(data, dict) or "features" not in data:
Expand Down
2 changes: 1 addition & 1 deletion forwarddeleter/forwarddeleter.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async def on_message(self, message: discord.Message) -> None:
except (discord.Forbidden, discord.HTTPException, discord.NotFound) as e:
log.error(
f"Failed to delete forwarded message {message.id} in {message.channel.mention} ({message.guild.id}): {e}",
exc_info=True
exc_info=True,
)

@commands.group()
Expand Down