Skip to content

Commit 97fd035

Browse files
committed
None not allowed for location in upload/download
1 parent 355a55f commit 97fd035

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aiohasupervisor/backups.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ async def upload_backup(
123123
if options:
124124
if options.location:
125125
for location in options.location:
126-
params.add("location", location or "")
126+
params.add("location", location)
127127
if options.filename:
128128
params.add("filename", options.filename.as_posix())
129129

@@ -145,7 +145,7 @@ async def download_backup(
145145
"""Download backup and return stream."""
146146
params = MultiDict()
147147
if options and options.location:
148-
params.add("location", options.location or "")
148+
params.add("location", options.location)
149149

150150
result = await self._client.get(
151151
f"backups/{backup}/download",

0 commit comments

Comments
 (0)