Commit 36339eb
committed
MAINT: work around non-zero exit status of "pdftops -v" command.
In the function responsible for probing the presence of external
command ("_get_executable_info"), add an optional argument
"ignore_error" (default False). If set to True, the external command is
allowed to exit with non-zero status, and the content of the output is
used anyway.
This works around the problem with certain xpdf versions where the
exit status of "pdftops -v" command is nonzero.
Compatibility is maintained because the optional argument defaults to
False which doesn't introduce any new behaviour.1 parent 170db2f commit 36339eb
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
| 317 | + | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
324 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
325 | 331 | | |
326 | 332 | | |
327 | 333 | | |
| |||
378 | 384 | | |
379 | 385 | | |
380 | 386 | | |
381 | | - | |
| 387 | + | |
| 388 | + | |
382 | 389 | | |
383 | 390 | | |
384 | 391 | | |
| |||
0 commit comments