Skip to content

Commit

Permalink
fix another typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsche committed Aug 20, 2024
1 parent 550f7b4 commit 996b7d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2024-08-20-PythonsPreprocessor.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Essentially we need two things to make the Python interpreter happy:

Let's do the decode function first. `codecs.utf_8_decode` can be used for the actual decoding - this will return a tuple of the decoded content of the source file and how many bytes were consumed. The resulting string can be passed on to our actual preprocessor.

> Uncaught exceptions will not be printed with traceback to the termminal as you would expect. Instead the interpreter will simply yield
> Uncaught exceptions will not be printed with traceback to the terminal as you would expect. Instead the interpreter will simply yield
> `SyntaxError: encoding problem: your_codec` with no helpful extra information as to why there was a problem with your codec.
>
> It is therefore advisable to catch exceptions coming from your preprocessor and explicitly print them before reraising.
Expand Down

0 comments on commit 996b7d6

Please sign in to comment.