# Copyright (c) 2016 The Regents of the University of Michigan
# All rights reserved.
# This software is licensed under the BSD 3-Clause License.
"""Graphical User Interface (GUI) for configuration and database inspection.

The GUI is a leight-weight interface which makes the configuration
of the signac framework and data inspection more straight-forward."""
import logging

logger = logging.getLogger(__name__)

try:
    import PySide  # noqa
    import pymongo  # noqa
except ImportError as error:
    logger.debug("{}. The signac gui is not available.".format(error))

    def main():
        """Start signac-gui.

        The gui requires PySide and pymongo."""
        raise ImportError(msg)
else:
    from .gui import main

__all__ = ['main']

@@ -473,27 +473,25 @@
 %0Aexcept 
-ImportError
+Exception
  as erro
@@ -501,26 +501,15 @@
     
-logger.debug(%22%7B%7D. 
+msg = '
 The 
@@ -535,18 +535,66 @@
 vailable
-.%22
+, because of an error: %22%7B%7D%22.'%0A    logger.debug(msg
 .format(
@@ -708,30 +708,60 @@
     
-raise ImportError(msg)
+import PySide  # noqa%0A        import pymongo  # noqa
 %0Aels

Make package more robust against PySide import errors.