From f4d8e538f403c6f58553015ca18554087ac4aa34 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 8 Sep 2006 18:03:40 +0200 Subject: [PATCH] Use has_key to check environ var --- shell/session/Session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/session/Session.py b/shell/session/Session.py index 8725a1dd..31c24430 100644 --- a/shell/session/Session.py +++ b/shell/session/Session.py @@ -71,7 +71,7 @@ class Session: process = DbusProcess() process.start() - if os.environ['SUGAR_DBUS_MONITOR']: + if os.environ.has_key('SUGAR_DBUS_MONITOR'): dbm = DBusMonitorProcess() dbm.start()