Closed shinji257 closed 1 year ago
Ahh... Just looked at the code. The above is you handling it but you just leave it to the user to delete it and start again. I'm not sure if the fact that it still does a Traceback dump is intended though.
so what is the solution here? @shinji257
Probably to do as instructed. ¯\_(ツ)_/¯
When running tg-archive using Takeout mode if you run the program again while a session.session file already exists it will try to use it. If the last session start was recent enough it can reuse it but most of the time it seems to become invalid. When that happens the application dumps and produces a message instructing to delete the file and try again. Can we have the program catch this error, delete the file, then start the process of starting a new session? Of course it should still alert the user that an existing session was found but no longer valid before doing so probably by still throwing the error itself without the dump and handling it gracefully.