Skip to content

Commit 08566b2

Browse files
committed
node: Move return to an else branch
Fixes "TRY300 Consider moving this statement to an else block"
1 parent 38874a5 commit 08566b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

node/flatpak_node_generator/requests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ async def read_parts(
6060
async for part in self._read_parts(url, size):
6161
bucket_writer.write(part)
6262
yield part
63-
64-
return
6563
except Exception:
6664
if i == Requests.retries:
6765
raise
66+
else:
67+
return
6868

6969
async def read_all(self, url: str, *, cachable: bool = False) -> bytes:
7070
bucket = self.__get_cache_bucket(cachable, url)

0 commit comments

Comments
 (0)