Skip to content

Commit

Permalink
fix: logo upload
Browse files Browse the repository at this point in the history
  • Loading branch information
yzqzss committed Aug 19, 2023
1 parent 2338909 commit ec8a840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wikiteam3/uploader/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ def upload(arg: Args):
print("=== Uploading ===")
upload_main_resouces(item, filedict, metadata, ia_keys)

item = get_item(identifier)
if logo_url:
print("=== Uploading logo (optional) ===")
try:
Expand All @@ -403,7 +404,6 @@ def upload(arg: Args):

def upload_logo(item: Item, logo_url: str, ia_keys: IAKeys):
assert logo_url
assert item.exists
assert item.identifier

parsed_url = urllib.parse.urlparse(logo_url)
Expand Down

0 comments on commit ec8a840

Please sign in to comment.