Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/10se1ucgo/DisableWinTracking.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author10se1ucgo <hammaadu1@gmail.com>2015-09-27 03:52:33 +0300
committer10se1ucgo <hammaadu1@gmail.com>2015-09-27 03:52:33 +0300
commitaafd458079888c85136f20428d422f096f576a94 (patch)
tree53ff8f4675c2b1c9a55de2e85258c7800e2b61aa
parentfc229a1617e14d802299af63580737893d39e163 (diff)
Make IP blocking log output more useful
-rw-r--r--run.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/run.py b/run.py
index 835f4cf..6190c70 100644
--- a/run.py
+++ b/run.py
@@ -391,7 +391,7 @@ class MainFrame(wx.Frame):
if self.xbonebox.IsChecked():
uninstalllist.append('xboxapp')
- if uninstalllist:
+ if uninstalllist: # Check if at least one app is selected
apppackage(reinstall=False, applist=uninstalllist)
self.console.Show() # Show console output window after the code is run
self.console.Center() # Center console window
@@ -427,7 +427,7 @@ def blockips(undo):
for ip in iplist:
subprocess.call("netsh advfirewall firewall add rule name=""TrackingIP{0}"" dir=out"
" protocol=any remoteip=""{0}"" profile=any action=block".format(ip), shell=True)
- print "IP Blocking: Succesfully blocked."
+ print "IP Blocking: {0} succesfully blocked.".format(ip)
except (WindowsError, IOError):
logging.exception("IP Blocking: One or more were unable to be blocked.")
print "IP Blocking: One or more were unable to be blocked."
@@ -436,7 +436,7 @@ def blockips(undo):
try:
for ip in iplist:
subprocess.call("netsh advfirewall firewall delete rule name=""TrackingIP{0}""".format(ip), shell=True)
- print "IP Blocking: Succesfully unblocked."
+ print "IP Blocking: {0} succesfully unblocked.".format(ip)
except (WindowsError, IOError):
logging.exception("IP Blocking: One or more were unable to be unblocked.")
print "IP Blocking: One or more were unable to be unblocked."