-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Main module improvements, build improvements and other bits #1302
base: master
Are you sure you want to change the base?
Conversation
…tap isn't defined anywhere
An asset not being present may be warning level but not critical. The app should try to run no matter what state its in unless user data integrity is at risk. |
If that asset is not present, it crashes below on SDL trying to use it, but with a much less clear and uncaught error, so I verify that the asset is even there before using it in the first place. It'll crash on |
Oh that's fine then. |
I've edited in a note about |
I can't seem to find that, can you link to or paste it here? |
EDIT: It's the last TODOs note in this PR description, I didn't realize you mean the entire note at first |
Oh, |
I am not sure about that, before the commit with your suggestion that I just sent, the value will imo always be |
Another thing - when the module is unable to be imported, a message is thrown to inform the user with what's missing due to the failed import: logging.warning("Unable to import pypresence, Discord Rich Presence will be disabled.") But it's not obvious to me what's missing with opencc(something with subtitles I guess) and natsort(Faster sort?): try:
import opencc
except ModuleNotFoundError:
logging.warning("Unable to import opencc, TODO(Martin): <what is lost?>.")
try:
import natsort
except ModuleNotFoundError:
logging.warning("Unable to import natsort, TODO(Martin): <what is lost?>.") |
If a value is undefined in Python it will crash, not be Theres also |
|
This issue prevents the app from starting for me so Ive committed this fix ahead of this PR. |
Supersedes #1285
Apologies for the size of this PR, which will increase still, it could in theory be split into smaller parts if really needed.
2021
on launch from t_extra as a random bit of example code was hanging therelogging
module and log all exceptionstap.stop()
,tap
is not defined anywhere in the codebasetransfer-playtime-to
not copying tagsrun.sh
not deleting egg build folderpyproject.toml
packaging package assets, themes, templates, modules.src/tauon
from tauon.t_modules.t_extra
- I suggest dropping the t_ prefix in the future, now that this is packaged together.t_main
intot_db_migrate
enc
variableos
file calls toPath
frompathlib
reload_albums()
int_main
using unboundcurrent_date
andcurrent_title
TODO:
pyproject.toml
too