Skip to content

Commit 3c2312c

Browse files
committed
fix stat error
1 parent b60214b commit 3c2312c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hhd/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ def main():
611611

612612
if not upd_beta:
613613
# No beta version for the UI yet, skip updating it
614-
import urllib.request, json
614+
import urllib.request, json, stat
615615

616616
with urllib.request.urlopen(
617617
"https://api.github.com/repos/hhd-dev/hhd-ui/releases/latest"
@@ -642,7 +642,7 @@ def progress(idx, blockSize, total):
642642
)
643643

644644
st = os.stat(out_fn)
645-
os.chmod(out_fn, st.st_mode | os.stat.S_IEXEC)
645+
os.chmod(out_fn, st.st_mode | stat.S_IEXEC)
646646
break
647647
updated = True
648648
else:

0 commit comments

Comments
 (0)