Commit 81f7a65
Add pyreadline3 backup import for readline (#1332)
* Add pyreadline3 backup import for readline
`readline` is unavailable on Windows. Without this fix, the following error occurs when attempting to launch yewtube:
```
File "C:\Python313\Lib\site-packages\mps_youtube\commands\__init__.py", line 28, in command
completer.add_cmd(command)
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'add_cmd'```
* Fix readline import handling in main.py
Handle ImportError for pyreadline3 and set has_readline flag.
---------
Co-authored-by: Talha Asghar <[email protected]>1 parent c32a2c4 commit 81f7a65
1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
0 commit comments