diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-06-08 23:04:01 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-06-08 23:04:01 +0300 |
commit | 91177bcf42f7a599e6f456b3ffdcbe8b8e0c6407 (patch) | |
tree | cdbcb7779e36106c8c52540a0364e6b7eb697590 /lib | |
parent | 9ee23a8b273875c2e93582fc2eb9a45612450ea7 (diff) |
don't crash if ch1p module is missing
Diffstat (limited to 'lib')
-rw-r--r-- | lib/results.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/results.py b/lib/results.py index 1565c4b..1fae89c 100644 --- a/lib/results.py +++ b/lib/results.py @@ -1,8 +1,11 @@ from threading import Lock from lib.util import Colored from lib.scanner import PortState -from ch1p import telegram_notify +try: + from ch1p import telegram_notify +except ModuleNotFoundError: + pass class Results: def __init__(self): |