Skip to content

Commit 3d1bca8

Browse files
committed
Import exception from pylint.exceptions instead of utils
Also tries to use the newer name (already over three years old) first. Fixes #15
1 parent 43fde21 commit 3d1bca8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pylint_plugin_utils/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import sys
22
try:
3-
from pylint.utils import UnknownMessage
3+
from pylint.exceptions import UnknownMessageError as UnknownMessage
44
except ImportError:
5-
from pylint.utils import UnknownMessageError as UnknownMessage
5+
from pylint.exceptions import UnknownMessage
66

77

88
def get_class(module_name, kls):

0 commit comments

Comments
 (0)