diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-04-26 18:44:12 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-04-26 18:48:03 -0400 |
commit | 48d08d21106545d1f27a9fd5a787a12c9dcf7d7c (patch) | |
tree | c4c6930da6402bfb69b1135e2158719923f0498d /dimension/client.py.in | |
parent | cd9497d80611badcc6663572f849da52b19e3ec6 (diff) | |
download | dimension-48d08d21106545d1f27a9fd5a787a12c9dcf7d7c.tar.xz |
client: Don't swallow import errors from the preview module.
Diffstat (limited to 'dimension/client.py.in')
-rw-r--r-- | dimension/client.py.in | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/dimension/client.py.in b/dimension/client.py.in index b1a3c60..2b6b084 100644 --- a/dimension/client.py.in +++ b/dimension/client.py.in @@ -27,12 +27,6 @@ import threading from contextlib import contextmanager from dimension import * -have_preview = True -try: - from dimension import preview -except ImportError: - have_preview = False - def main(): """Invoke the client from the command line.""" @@ -167,10 +161,8 @@ def main(): render_message = "Rendering scene (using %d threads)" % scene.nthreads bar = progress_bar_async(render_message, future) if args.preview: - if have_preview: - preview.show_preview(canvas, future) - else: - print("Couldn't display preview window", file = sys.stderr) + from dimension import preview + preview.show_preview(canvas, future) if bar is not None: join_progress_bar(bar) |