diff options
| author | Didier Roche <didier.roche@canonical.com> | 2012-06-28 11:05:08 +0200 |
|---|---|---|
| committer | Didier Roche <didier.roche@canonical.com> | 2012-06-28 11:05:08 +0200 |
| commit | 2fced99f71ab9bd439b417093e3746a8b9fae300 (patch) | |
| tree | 6e684204cadda688428acd3f68234146206a29eb /tools | |
| parent | 0886fdf1d25e63c6cad7980c3e50cfd8ce410b07 (diff) | |
import glib for handling the GError (LP: #778470)
Fixes LP: #778470 (bzr r2452.1.1)
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/unity.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/unity.cmake b/tools/unity.cmake index f4897a55f..af7871855 100755 --- a/tools/unity.cmake +++ b/tools/unity.cmake @@ -19,6 +19,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA import gconf +import glib import glob from optparse import OptionParser import os @@ -78,7 +79,7 @@ def reset_unity_compiz_profile (): # as compiz set a new schema instead of a value.. try: current_profile_schema = client.get_schema("/apps/compizconfig-1/current_profile") - except (GError, AttributeError), e: + except (glib.GError, AttributeError), e: print "WARNING: environment is incorrect: %s\nDid you just try to reset in a tty?" % e return |
