diff --git a/headphones/mb.py b/headphones/mb.py index a688624b..fc0bc8d0 100644 --- a/headphones/mb.py +++ b/headphones/mb.py @@ -22,7 +22,10 @@ import headphones import musicbrainzngs try: + # pylint:disable=E0611 + # ignore this error because we are catching the ImportError from collections import OrderedDict + # pylint:enable=E0611 except ImportError: # Python 2.6.x fallback, from libs from ordereddict import OrderedDict diff --git a/headphones/webserve.py b/headphones/webserve.py index b1c0d950..8fd4b64d 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -32,7 +32,10 @@ import threading import headphones try: + # pylint:disable=E0611 + # ignore this error because we are catching the ImportError from collections import OrderedDict + # pylint:enable=E0611 except ImportError: # Python 2.6.x fallback, from libs from ordereddict import OrderedDict