Commit 8825c77
Be less cautious in Path.version
Drops a way too broad except clause there. The only reasonable
exception I could see coming from get_file_version is a ValueError from
the new string code, so I added an except there to make sure.
If this does end up breaking something, it points to a way deeper issue
that actually needs investigating, not silencing.
Fix crash on startup due to xSE version check
Turns out that there was a reason for the insanely broad except clause
in Path.version. StatusBar_Button.obseVersion did not check if the xSE
file actually exists before checking its version - which obviously
errors.
Obviously, the correct solution here is not to silence that erorr, but
to make obseVersion check if the file actually exists before calling
strippedVersion on it.
Add support for reading versions of .lnk files
This fixes a crash when any of those are added to the 'Apps' folder and
also shows their versions when the 'app version' status bar feature is
enabled - so we even came out of this with a new feature!
Also added some minor try-except clauses around the win32 api calls
there now that I understand what actually causes them.1 parent 97894a3 commit 8825c77
3 files changed
Lines changed: 22 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
797 | 797 | | |
798 | 798 | | |
799 | 799 | | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
| 800 | + | |
807 | 801 | | |
808 | 802 | | |
809 | 803 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
342 | 347 | | |
343 | 348 | | |
344 | 349 | | |
| |||
381 | 386 | | |
382 | 387 | | |
383 | 388 | | |
384 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
385 | 394 | | |
386 | 395 | | |
387 | 396 | | |
| |||
403 | 412 | | |
404 | 413 | | |
405 | 414 | | |
406 | | - | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
407 | 420 | | |
408 | 421 | | |
409 | 422 | | |
| |||
0 commit comments