Skip to content

Commit

Permalink
No longer crashing if winetricks loading fails (issue #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Schwerdel committed May 16, 2012
1 parent 5977032 commit a6e60ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion winetricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ def init():
if version:
if getCacheVersion() != version:
print >>sys.stderr, tr("Loading winetricks entries...")
loadOptions()
try:
loadOptions()
except:
cache = {}
saveCache()
else:
print >>sys.stderr, tr("WARNING: Winetricks binary not found")
Expand Down

0 comments on commit a6e60ef

Please sign in to comment.