Commit a758b68
pyth: Print error and return 1 on mapping key failure.
Previously, pyth would return a 0 exit code but not return any data.
This could happen if the mapping key is missing or invalid.
Also, only try updating the price::pub_idx_ if the manager actually
has a publish public key. This was causing a crash when running the
tools without a publish keypair. This should be valid for running
in monitoring / consuming modes.1 parent 9cd149d commit a758b68
2 files changed
+16
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2145 | 2145 | | |
2146 | 2146 | | |
2147 | 2147 | | |
2148 | | - | |
2149 | | - | |
2150 | | - | |
2151 | | - | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
2152 | 2154 | | |
2153 | 2155 | | |
2154 | 2156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1014 | 1014 | | |
1015 | 1015 | | |
1016 | 1016 | | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
1017 | 1022 | | |
1018 | 1023 | | |
1019 | 1024 | | |
| |||
1206 | 1211 | | |
1207 | 1212 | | |
1208 | 1213 | | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
1209 | 1219 | | |
1210 | 1220 | | |
1211 | 1221 | | |
| |||
0 commit comments