Skip to content

Commit

Permalink
Addon Manager: Bugfix for zip installation
Browse files Browse the repository at this point in the history
  • Loading branch information
chennes committed Dec 21, 2021
1 parent b2fbf64 commit dede24d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Mod/AddonManager/addonmanager_workers.py
Expand Up @@ -30,6 +30,7 @@
import hashlib
import threading
import queue
import io
from datetime import datetime
from typing import Union, List

Expand Down Expand Up @@ -1270,7 +1271,12 @@ def run_zip(self, zipdir: str) -> None:
)
return

data_size = u.headers["content-length"]
data_size = 0
if "content-length" in u.headers:
try:
data_size = int(u.headers["content-length"])
except Exception:
pass

current_thread = QtCore.QThread.currentThread()
if data_size and data_size > 5 * 1024 * 1024:
Expand Down

0 comments on commit dede24d

Please sign in to comment.