Author: jerome
Date: 2009-12-08 11:47:09 +0100 (Tue, 08 Dec 2009)
New Revision: 5948

Modified:
   
software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/utils.py
Log:
* Added return statement.

Modified: 
software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/utils.py
===================================================================
--- 
software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/utils.py
  2009-12-08 10:45:38 UTC (rev 5947)
+++ 
software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/utils.py
  2009-12-08 10:47:09 UTC (rev 5948)
@@ -65,11 +65,14 @@
         '''
         Check for Skype client process.
         '''
-        from win32com.client import GetObject
-        WMI = GetObject('winmgmts:')
-        processes = WMI.InstancesOf('Win32_Process')
-        return ( "skype.exe" in processes ) or ( 'Skype.exe' in processes )
-        
+        try:
+            from win32com.client import GetObject
+            WMI = GetObject('winmgmts:')
+            processes = WMI.InstancesOf('Win32_Process')
+            return ( "skype.exe" in processes ) or ( 'Skype.exe' in processes )
+        except:
+            return False
+            
     
     def __start_skype_linux__(self):
         '''


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to