diff --git a/xdot/ui/window.py b/xdot/ui/window.py index 52ee6ca..b420b72 100644 --- a/xdot/ui/window.py +++ b/xdot/ui/window.py @@ -156,7 +156,7 @@ def set_dotcode(self, dotcode, filename=None, center=True): def set_xdotcode(self, xdotcode, center=True): assert isinstance(xdotcode, bytes) - if self.graphviz_version is None: + if self.graphviz_version is None and self.filter is not None: stdout = subprocess.check_output([self.filter, '-V'], stderr=subprocess.STDOUT) stdout = stdout.rstrip() mo = re.match(br'^.* - .* version (?P.*) \(.*\)$', stdout)