Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hiro
GetTor
Commits
f3aff5a7
Commit
f3aff5a7
authored
Oct 18, 2019
by
Hiro
🏄
Browse files
Remove logs and fix checks
parent
4515c62f
Changes
1
Hide whitespace changes
Inline
Side-by-side
gettor/parse/email.py
View file @
f3aff5a7
...
...
@@ -152,13 +152,7 @@ class EmailParser(object):
def
too_many_requests
(
self
,
hid
,
num_requests
,
limit
):
test_hid
=
self
.
settings
.
get
(
'test_hid'
)
log
.
msg
(
"test_hid {}"
.
format
(
test_hid
),
system
=
"email parser"
)
log
.
msg
(
"hid {}"
.
format
(
hid
),
system
=
"email parser"
)
test_hid
=
self
.
settings
.
get
(
"test_hid"
)
if
hid
==
test_hid
:
return
False
elif
num_requests
<
limit
:
...
...
@@ -251,8 +245,6 @@ class EmailParser(object):
hid
,
num_requests
[
0
][
0
],
email_requests_limit
)
log
.
msg
(
"check: {}"
.
format
(
check
),
system
=
"email parser"
)
if
check
:
log
.
msg
(
"Discarded. Too many requests from {}."
.
format
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment