Skip to content

Handle ValueError when parsing string escape code in cocas - #104

Merged
Intelix8996 merged 1 commit into
masterfrom
fix-invalid-escape-error
Mar 23, 2026
Merged

Handle ValueError when parsing string escape code in cocas#104
Intelix8996 merged 1 commit into
masterfrom
fix-invalid-escape-error

Conversation

@aelsi2

@aelsi2 aelsi2 commented Mar 15, 2026

Copy link
Copy Markdown
Member

This PR makes cocas output a proper error instead of a traceback when trying to parse invalid escape codes such as these:

asect 0
dc "\xA"
dc "\400"
end

This commit makes cocas output a proper error instead of a traceback
when trying to parse invalid escape codes like these:

asect 0
dc "\xA"
dc "\400"
end
@aelsi2 aelsi2 added this to the Release 0.2.3 milestone Mar 15, 2026
@aelsi2
aelsi2 requested a review from Intelix8996 March 15, 2026 12:03
@aelsi2 aelsi2 self-assigned this Mar 15, 2026
@aelsi2 aelsi2 added the fix Fixes something label Mar 15, 2026
@aelsi2 aelsi2 changed the title Handle ValueError when parsing string escape code in cocas Handle ValueError when parsing string escape code in cocas Mar 15, 2026
@Intelix8996
Intelix8996 merged commit 1ecb86e into master Mar 23, 2026
2 checks passed
@Intelix8996
Intelix8996 deleted the fix-invalid-escape-error branch March 23, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Fixes something

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants