Skip to content

Commit 9b88b80

Browse files
committed
fix(storage): don't set self.status to None
1 parent a8c8337 commit 9b88b80

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

api/utils/storage/BaseStorage.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ def test(url):
7373

7474
def __init__(self, url, **kwargs):
7575
self.url = url
76-
self.status = kwargs.get("status", None)
76+
status = kwargs.get("status", None)
77+
if status:
78+
self.status = status
7779

7880
def updateStatus(self, type, progress):
7981
if hasattr(self, "status"):

0 commit comments

Comments
 (0)