Skip to content

Commit a6e235c

Browse files
committed
fix: get_thumbnail_url check url (not _url) first
Thank @kylinbin
1 parent e9cd3a7 commit a6e235c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

leancloud/file_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def metadata(self):
163163
def get_thumbnail_url(
164164
self, width, height, quality=100, scale_to_fit=True, fmt="png"
165165
):
166-
if not self._url:
166+
if not self.url:
167167
raise ValueError("invalid url")
168168

169169
if width < 0 or height < 0:

0 commit comments

Comments
 (0)