Skip to content

Commit

Permalink
Merge pull request #177 from AirportR/dev
Browse files Browse the repository at this point in the history
🐛 Fixed
  • Loading branch information
AirportR authored Mar 5, 2024
2 parents 7cb6034 + b77e736 commit 8c9d196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions botmodule/init_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ def init_dir():
def init_permission():
if sys.platform != "win32":
try:
status = os.system(f"chmod +x {CLASH_PATH}")
status = os.system(f"chmod +x {config.get_clash_path()}")
if status != 0:
raise OSError(f"Failed to execute command: chmod +x {CLASH_PATH}")
raise OSError(f"Failed to execute command: chmod +x {config.get_clash_path()}")
except OSError as o:
print(o)

Expand Down

0 comments on commit 8c9d196

Please sign in to comment.