Skip to content

Commit

Permalink
Fix running in read-only directories. Closes 10se1ucgo#112
Browse files Browse the repository at this point in the history
  • Loading branch information
10se1ucgo committed Oct 31, 2015
1 parent 615e3d0 commit 08d41bc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
vernumber = "v2.5.3" # Version number

# Configure the Logging module
logging.basicConfig(filename='DisableWinTracking.log', level=logging.DEBUG,
format='\n%(asctime)s %(levelname)s: %(message)s', datefmt='%H:%M:%S', filemode='w')
try:
logging.basicConfig(filename='DisableWinTracking.log', level=logging.DEBUG,
format='\n%(asctime)s %(levelname)s: %(message)s', datefmt='%H:%M:%S', filemode='w')
except (WindowsError, IOError):
print "Could not create log file."


class RedirectText(object):
Expand Down

0 comments on commit 08d41bc

Please sign in to comment.