Skip to content

Commit 6c2ab5b

Browse files
committed
Logging panel errors
1 parent f565044 commit 6c2ab5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ibllib/plots/figures.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"""
44
import logging
55
from pathlib import Path
6+
import traceback
67
from string import ascii_uppercase
78

89
import numpy as np
@@ -362,6 +363,7 @@ def dlc_qc_plot(eid, one=None):
362363
try:
363364
panel[0](**panel[1])
364365
except BaseException:
366+
logger.error(f'Error in {panel[0].__name__}\n' + traceback.format_exc())
365367
ax.text(.5, .5, f'Error in \n{panel[0].__name__}', color='r', fontweight='bold',
366368
fontsize=12, horizontalalignment='center', verticalalignment='center', transform=ax.transAxes)
367369
plt.axis('off')

0 commit comments

Comments
 (0)