Check for the correct exception
This commit is contained in:
@@ -13,7 +13,7 @@ import sh
|
||||
|
||||
try:
|
||||
from sh import lsb_release, uname
|
||||
except sh.CommandNotFound:
|
||||
except ImportError:
|
||||
LSB = False
|
||||
else:
|
||||
LSB = True
|
||||
|
||||
Reference in New Issue
Block a user