You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
coldmorning
changed the title
fix :If there is a eception with one file, you can continue to work on the other files.
fix :If there is a exception with one file, you can continue to work on the other files.
Apr 4, 2022
Traceback (most recent call last): File "C:\Users\doe\Projects\Notion-2-Obsidian\N2O.py", line 114, in <module> mdContent, cnt = N2Omodule.N2Omd(mdFile) File "C:\Users\doe\Projects\Notion-2-Obsidian\N2Omodule.py", line 334, in N2Omd line, cnt = internal_link_convert(line) File "C:\Users\doe\Projects\Notion-2-Obsidian\N2Omodule.py", line 292, in internal_link_convert print(line) File "C:\Python310\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f4d4' in position 4: character maps to <undefined>
Using Git Bash on windows 11 with an extensive notion backup
Edit 🔽
This issue does not trigger on vscode but another unhandled exception (Long filepath) when running in vscode
I am keeping this comment if you want to fix this unhandled exception as well
bash Traceback (most recent call last): File "c:\Users\doe\Projects\Notion-2-Obsidian\N2O.py", line 132, in <module> with open(newfilepath, append_write, encoding='utf-8') as tempFile: FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\chatt\\AppData\\Local\\Temp\\tmp0b2j8trd\\Personal Dashboard\\Liked tweets\\With blockchain, things turn upside down. Finance guys find it extremely hard to understand given technology complexity, and we, techies, find solace finally in some place. Work on your tech skills, start from as basics as JS, there is no easy way out to understand this..md'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why Change:

The tool will be crash when the tool try to read the file/directory that can't be success to read
How to do:
We use syntax
try catchto handle to problems.