Browse code

Fix return value on error.

Jose.R.Fonseca authored on 13/07/2008 01:34:41
Showing 1 changed files

  • xdot.py index 4512580..dae3ae1 100644
... ...
@@ -478,7 +478,7 @@ class XDotParser:
478 478
 
479 479
         bb = graph.get_bb()
480 480
         if bb is None:
481
-            return []
481
+            return Graph()
482 482
 
483 483
         xmin, ymin, xmax, ymax = map(int, bb.split(","))
484 484