Skip to content

Commit 8200c82

Browse files
Update space.py
Removed unnecessary `else:` statement
1 parent 31c5fc6 commit 8200c82

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

bot/exts/fun/space.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ async def fetch_from_nasa(
127127

128128
if 200 <= status < 300:
129129
return NasaResult(ok=True, status=status, data=data)
130-
else:
131-
logger.warning("NASA API returned non-success status %s for %s", status, url)
132-
return NasaResult(
133-
ok=False,
134-
status=status,
135-
data=data,
136-
error=f"NASA API returned status {status}.",
137-
)
130+
131+
logger.warning("NASA API returned non-success status %s for %s", status, url)
132+
return NasaResult(
133+
ok=False,
134+
status=status,
135+
data=data,
136+
error=f"NASA API returned status {status}.",
137+
)
138138

139139
except TimeoutError:
140140
logger.warning("NASA API request timed out for %s", url)

0 commit comments

Comments
 (0)