Skip to content

Commit d557f4a

Browse files
committed
Better error message if gnuplot comm hangs
It no longer asks the user to complain to me. I'm fairly confident the comm logic is sound now, so complaining to me is unhelpful to anybody. The most common culprit is the gnuplot qt terminal, which hangs if you try to plot without a DISPLAY set
1 parent 17c345a commit d557f4a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gnuplotlib.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,8 +1721,7 @@ def _checkpoint(self, flags=''):
17211721
self.checkpoint_stuck = True
17221722

17231723
raise GnuplotlibError(
1724-
r'''Gnuplot process no longer responding. This is likely a bug in gnuplotlib
1725-
and/or gnuplot itself. Please report this as a gnuplotlib bug''')
1724+
r'''Gnuplot process no longer responding. This shouldn't happen... Is your X connection working?''')
17261725

17271726
fromerr = re.search(r'\s*(.*?)\s*{}$'.format(checkpoint), fromerr, re.M + re.S).group(1)
17281727

0 commit comments

Comments
 (0)