Repository navigation
Commit 1e8484b
hookutils: gi: fix error handling in compile_glib_schema_files
Fix error handling in compile_glib_schema_files; do not attempt
to access attributes of `p`, which is unavailable in the exception
handling block. To display stdout/stderr of the failed process,
use attributes of the `subprocess.CalledProcessError` instead.
Ignore the character encoding errors when decoding stdout/stderr
from the `glib-compile-schema` process. The warnings it emits
seem to use `U+201C` and `U+201D` quotation marks, which might
cause issues with active locale (for example, in msys2/mingw64
environment).1 parent e7f6380 commit 1e8484b
2 files changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| 398 | + | |
398 | 399 | | |
399 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
400 | 407 | | |
401 | 408 | | |
402 | | - | |
403 | 409 | | |
404 | 410 | | |
405 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments