Fix try-except for seaborn kdeplot by specifying exception
So apparently except():
introduced in 8d4f8381 doesn't catch the exception raised (see below) and either the exception has to be specified (as I have done here) or all exceptions have to be caught with except Exception as e:
or something similar.
Error log
Traceback (most recent call last):
File ".../pyring/bin/pyRing", line 8, in <module>
sys.exit(main())
^^^^^^
File ".../pyRing/pyRing.py", line 2361, in main
try: plots.Mf_af_plot(x, Mf_dist, af_dist, **input_par)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../pyRing/plots.py", line 1872, in Mf_af_plot
sns.kdeplot( ringdown_df['Mf'], ringdown_df['af'], ax=bottom_left_ax, color=colors[0], shade=True)
TypeError: kdeplot() takes from 0 to 1 positional arguments but 2 positional arguments (and 2 keyword-only arguments) were given