Skip to content

Commit

Permalink
add the judge logic when removing pac file.
Browse files Browse the repository at this point in the history
  • Loading branch information
TyrantLucifer committed Dec 15, 2021
1 parent 26a6168 commit 5487be2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shadowsocksr_cli/http_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,4 +309,5 @@ def generate_pac(address, port):

@staticmethod
def remove_pac():
os.remove("autoproxy.pac")
if os.path.exists("autoproxy.pac"):
os.remove("autoproxy.pac")

0 comments on commit 5487be2

Please sign in to comment.