Show More
@@ -44,7 +44,7 b' try:' | |||
|
44 | 44 | b'cyan': (False, curses.COLOR_CYAN, b''), |
|
45 | 45 | b'white': (False, curses.COLOR_WHITE, b''), |
|
46 | 46 | } |
|
47 | except ImportError: | |
|
47 | except (ImportError, AttributeError): | |
|
48 | 48 | curses = None |
|
49 | 49 | _baseterminfoparams = {} |
|
50 | 50 |
@@ -63,13 +63,13 b' try:' | |||
|
63 | 63 | import curses.ascii |
|
64 | 64 | |
|
65 | 65 | curses.error |
|
66 | except ImportError: | |
|
66 | except (ImportError, AttributeError): | |
|
67 | 67 | # I have no idea if wcurses works with crecord... |
|
68 | 68 | try: |
|
69 | 69 | import wcurses as curses |
|
70 | 70 | |
|
71 | 71 | curses.error |
|
72 | except ImportError: | |
|
72 | except (ImportError, AttributeError): | |
|
73 | 73 | # wcurses is not shipped on Windows by default, or python is not |
|
74 | 74 | # compiled with curses |
|
75 | 75 | curses = False |
General Comments 0
You need to be logged in to leave comments.
Login now