Update functions/pitch_summary_functions.py
Browse files
functions/pitch_summary_functions.py
CHANGED
|
@@ -866,7 +866,7 @@ def plot_logo(pitcher_id: str, ax: plt.Axes, df_team: pl.DataFrame, df_players:
|
|
| 866 |
|
| 867 |
# Turn off the axis
|
| 868 |
ax.axis('off')
|
| 869 |
-
except KeyError:
|
| 870 |
ax.axis('off')
|
| 871 |
return
|
| 872 |
|
|
|
|
| 866 |
|
| 867 |
# Turn off the axis
|
| 868 |
ax.axis('off')
|
| 869 |
+
except (KeyError,IndexError) as e:
|
| 870 |
ax.axis('off')
|
| 871 |
return
|
| 872 |
|