Skip to content

Commit c6fb055

Browse files
committed
remove handling of import errors
should be done in the code using the lib, not here
1 parent 9bd217d commit c6fb055

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

smb3.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,13 @@
1212
"""
1313

1414
__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
15-
__version__ = '2022062001'
15+
__version__ = '2022071901'
1616

1717
import sys
1818

1919
from .globals3 import STATE_UNKNOWN
20-
try:
21-
import smbclient
22-
except ImportError as e:
23-
print('Python module "smbclient" is not installed.')
24-
sys.exit(STATE_UNKNOWN)
25-
try:
26-
import smbprotocol.exceptions
27-
except ImportError as e:
28-
print('Python module "smbprotocol" is not installed.')
29-
sys.exit(STATE_UNKNOWN)
30-
20+
import smbclient
21+
import smbprotocol.exceptions
3122

3223
def open_file(path, username, password, timeout, encrypt=True):
3324
try:

0 commit comments

Comments
 (0)