This commit is contained in:
jxxghp
2023-09-01 18:24:43 +08:00
parent 5dc11b07e3
commit 55c061176d
2 changed files with 5 additions and 2 deletions

View File

@ -256,7 +256,10 @@ class MediaInfo:
"""
获取图片地址
"""
return getattr(self, f"{name}_path")
try:
return getattr(self, f"{name}_path")
except AttributeError:
return None
def set_category(self, cat: str):
"""