Skip to content

Commit c71c11b

Browse files
committed
All errors raise a specific GnuplotlibError instead of Exception
1 parent d43b2b1 commit c71c11b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gnuplotlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2060,7 +2060,7 @@ def plot(self, *curves, **curveOptions_base):
20602060
'output')
20612061
else:
20622062
if self.fdDupSTDOUT is None:
2063-
raise Exception("I need to plot to STDOUT, but STDOUT wasn't available")
2063+
raise GnuplotlibError("I need to plot to STDOUT, but STDOUT wasn't available")
20642064

20652065
self.plotOptions['output'] = '/dev/fd/' + str(self.fdDupSTDOUT)
20662066
self._safelyWriteToPipe('set output "' + self.plotOptions['output'] + '"',
@@ -2307,7 +2307,7 @@ def wait():
23072307
'''
23082308
global globalplot
23092309
if not globalplot:
2310-
raise Exception("There isn't a plot to wait on")
2310+
raise GnuplotlibError("There isn't a plot to wait on")
23112311

23122312
globalplot.wait()
23132313

0 commit comments

Comments
 (0)