Skip to content

Commit

Permalink
aardvark: fix python3 import issue
Browse files Browse the repository at this point in the history
python 3 thows other exception than python 2

Signed-off-by: Heiko Thiery <heiko.thiery@kontron.com>
  • Loading branch information
hthiery committed Sep 28, 2018
1 parent a6591f1 commit 5e84dda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyipmi/interfaces/aardvark.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@

try:
import pyaardvark
except ImportError:
except ImportError: # python 2
pyaardvark = None
except RuntimeError: # python 3
pyaardvark = None


Expand Down

0 comments on commit 5e84dda

Please sign in to comment.