Added exit code
This commit is contained in:
parent
aab55304fb
commit
74c680b388
|
@ -1,4 +1,4 @@
|
|||
import urllib2, datetime, mmap, re
|
||||
import urllib2, datetime, mmap, re, sys
|
||||
|
||||
## GLOBAL VAR ##
|
||||
processed_rules = set()
|
||||
|
@ -71,5 +71,5 @@ with open('filter.template', 'r') as tmpl:
|
|||
if line.startswith('url'):
|
||||
save_url_rule(line, f)
|
||||
if line.startswith('file'):
|
||||
save_file_rule(line, f)
|
||||
|
||||
save_file_rule(line, f)
|
||||
sys.exit(0)
|
||||
|
|
Loading…
Reference in New Issue