fix blocklist indents
This commit is contained in:
parent
c97fafa2b3
commit
078af4148f
|
@ -87,7 +87,7 @@ class BlocklistImport:
|
||||||
print "importing with",ltype
|
print "importing with",ltype
|
||||||
|
|
||||||
try:
|
try:
|
||||||
reader = readers[ltype][1](self.blockfile)
|
reader = readers[ltype][1](self.blockfile)
|
||||||
except IOError, (errno, strerr):
|
except IOError, (errno, strerr):
|
||||||
err = ui.GTKError("Couldn't open blocklist file: %s"%strerr)
|
err = ui.GTKError("Couldn't open blocklist file: %s"%strerr)
|
||||||
self.gtkprog.stop()
|
self.gtkprog.stop()
|
||||||
|
@ -103,7 +103,7 @@ class BlocklistImport:
|
||||||
if curr % 100 == 0:
|
if curr % 100 == 0:
|
||||||
self.gtkprog.import_prog(text="Imported %s IPs"%curr)
|
self.gtkprog.import_prog(text="Imported %s IPs"%curr)
|
||||||
else:
|
else:
|
||||||
self.gtkprog.import_prog()
|
self.gtkprog.import_prog()
|
||||||
|
|
||||||
reader.close()
|
reader.close()
|
||||||
self.gtkprog.end_import()
|
self.gtkprog.end_import()
|
||||||
|
|
Loading…
Reference in New Issue