-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple fixes and few new features #66
Conversation
It's now possible to use WordAnalyzer with multiple words.
that function takes care of detecting CTRL+C or crashes
All error handlers will be called before exiting pastepwn
When trying to quickly shutdown the program, it did not work. Now we are only sleeping two seconds instead of 60 (worst case)
Pull Request Test Coverage Report for Build 78
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add some logging to regexanalyzer, when returning false on an empty paste
Also updated the test case to catch that issue
@@ -14,5 +14,8 @@ def __init__(self, actions, regex): | |||
|
|||
def match(self, paste): | |||
"""Match the content of a paste via regex. Return true if regex matches""" | |||
if paste is None: | |||
return False | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can add some logging to this at a later point
|
||
# if the last scraping happened less than 60 seconds ago, | ||
# wait 2 seconds and check again | ||
time.sleep(2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was done in order to prevent very long wait times when using CTRL-C, since this operation is blocking
New features are: