From 2d13103ff723e60edcabc2cd3121bc79fd7a4a1f Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Thu, 29 Sep 2005 01:16:21 +0000 Subject: [PATCH] Check if ltihooks is present before trying to delete it Original commit message from CVS: Check if ltihooks is present before trying to delete it --- gst/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/__init__.py b/gst/__init__.py index 16364791ce..d536b3a854 100644 --- a/gst/__init__.py +++ b/gst/__init__.py @@ -88,4 +88,6 @@ if __ltihooks_used__: __ltihooks_used__ = False del ltihooks import sys - del sys.modules['ltihooks'] + if 'ltihooks' in sys.modules: + del sys.modules['ltihooks'] +