Skip to content

Commit

Permalink
FIX: Another check if parameter is callable
Browse files Browse the repository at this point in the history
  • Loading branch information
d-Rickyy-b committed May 7, 2019
1 parent 55bb18d commit 781d6d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pastepwn/analyzers/genericanalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def __init__(self, actions, match_func):

if match_func is None:
raise ValueError("Function to be called cannot be None")
elif not callable(match_func):
raise ValueError("Function you provided isn't callable")

self.match_func = match_func

Expand Down

0 comments on commit 781d6d0

Please sign in to comment.