[Bug]: Error when accessing hidden folder causing program to crash #810
Labels
Priority: High
An important issue requiring attention
System: Windows
For Microsoft Windows
Type: Bug
Something isn't working as intended
Type: File System
File system interactions
Checklist
TagStudio Version
Alpha 9.4.2
Operating System & Version
Windows 10
Description
There is a folder I want hidden on my computer but I also want to use this tool. When I want to use the tool I have no issue having to manually unhide the folder to use TagStudios but what I dont like is how it gives this long error message and just crashes. I have to unhide the folder first in otder to even get the program to open so I can use it (this includes if i want to open a different library)
Expected Behavior
I think that it sould provide a very basic error message within the center of the page (Where is says "Opening library 'folder path here'") that says "Cannot access previous library"
Steps to Reproduce
Logs
Failed to execute script 'tag_studio' due to unhandled exception: input(): lost sys.stdin
Traceback (most recent call last):
File "tag_studio.py", line 75, in main
File "src\qt\ts_qt.py", line 638, in start
self.open_library(Path(lib))
File "src\qt\ts_qt.py", line 1836, in open_library
return_code = self.lib.open_library(path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "src\core\library.py", line 748, in open_library
self.save_library_backup_to_disk(is_auto=True)
File "src\core\library.py", line 856, in save_library_backup_to_disk
with open(
^^^^^
PermissionError: [Errno 13] Permission denied: 'C:\Users\SC09\OneDrive\Desktop\⠀\.TagStudio\backups\ts_library_backup_auto.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tag_studio.py", line 83, in
File "tag_studio.py", line 79, in main
RuntimeError: input(): lost sys.stdin
The text was updated successfully, but these errors were encountered: