Skip to content

Commit

Permalink
Fix broken graphviz import
Browse files Browse the repository at this point in the history
  • Loading branch information
joowani committed Mar 24, 2022
1 parent c0586d8 commit bd75150
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion binarytree/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
from typing import Any, Deque, Dict, Iterator, List, Optional, Tuple, Union

from graphviz import Digraph, nohtml
from graphviz.exceptions import ExecutableNotFound

try:
from graphviz.exceptions import ExecutableNotFound
except ImportError:
# noinspection PyProtectedMember
from graphviz import ExecutableNotFound
from pkg_resources import get_distribution

from binarytree.exceptions import (
Expand Down

0 comments on commit bd75150

Please sign in to comment.