summaryrefslogtreecommitdiffstats
path: root/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-04-26 18:44:12 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-04-26 18:48:03 -0400
commit48d08d21106545d1f27a9fd5a787a12c9dcf7d7c (patch)
treec4c6930da6402bfb69b1135e2158719923f0498d /dimension
parentcd9497d80611badcc6663572f849da52b19e3ec6 (diff)
downloaddimension-48d08d21106545d1f27a9fd5a787a12c9dcf7d7c.tar.xz
client: Don't swallow import errors from the preview module.
Diffstat (limited to 'dimension')
-rw-r--r--dimension/client.py.in12
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)