Skip to content

Commit

Permalink
fix stat error
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Mar 13, 2024
1 parent b60214b commit 3c2312c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hhd/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ def main():

if not upd_beta:
# No beta version for the UI yet, skip updating it
import urllib.request, json
import urllib.request, json, stat

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

st = os.stat(out_fn)
os.chmod(out_fn, st.st_mode | os.stat.S_IEXEC)
os.chmod(out_fn, st.st_mode | stat.S_IEXEC)
break
updated = True
else:
Expand Down

0 comments on commit 3c2312c

Please sign in to comment.