Commit a008448
committed
Fix diffmodels.py exception handling for surface mechanisms.
When comparing mechanisms that are NOT surface models, it would
do the load_chemkin_file as part of an `except` block,
which then means if you get an error during `load_chemkin_file`
the stack trace and error message are all confused and it looks
like a KeyError: 'surface_path1'
which is misleading.1 parent ba3823b commit a008448
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
375 | 374 | | |
376 | 375 | | |
377 | 376 | | |
| |||
0 commit comments