mirror of https://github.com/docker/compose.git
Define WindowsError on non-win32 platforms
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
70a605acac
commit
b7f9fc4b28
|
@ -12,6 +12,13 @@ from six.moves import input
|
|||
|
||||
import compose
|
||||
|
||||
# WindowsError is not defined on non-win32 platforms. Avoid runtime errors by
|
||||
# defining it as OSError (its parent class) if missing.
|
||||
try:
|
||||
WindowsError
|
||||
except NameError:
|
||||
WindowsError = OSError
|
||||
|
||||
|
||||
def yesno(prompt, default=None):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue