mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
Only try "lzma" module on ImportError
This commit is contained in:
parent
7d0722bc18
commit
4856567a2a
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ from deroff import Deroffer
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import backports.lzma as lzma
|
import backports.lzma as lzma
|
||||||
except:
|
except ImportError:
|
||||||
import lzma
|
import lzma
|
||||||
|
|
||||||
# Whether we're Python 3
|
# Whether we're Python 3
|
||||||
|
|
Loading…
Reference in a new issue