Skip to content

Commit

Permalink
Gracefully fail if old binary is still in use
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Oct 24, 2019
1 parent 0d7f580 commit 63f5f45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CurseBreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ def auto_update(self):
if getattr(sys, 'frozen', False):
try:
if os.path.isfile(sys.executable + '.old'):
os.remove(sys.executable + '.old')
try:
os.remove(sys.executable + '.old')
except PermissionError:
pass
payload = requests.get('https://api.github.com/repos/AcidWeb/CurseBreaker/releases/latest',
headers=HEADERS).json()
remoteversion = payload['name']
Expand Down

0 comments on commit 63f5f45

Please sign in to comment.