use try in case pygame isnt installed

This commit is contained in:
Marcos Pinto 2007-10-31 05:46:49 +00:00
parent a4373ef156
commit 5ad442341f

View File

@ -149,7 +149,11 @@ class TorrentNotification:
def play_sound(self): def play_sound(self):
if not deluge.common.windows_check(): if not deluge.common.windows_check():
try:
import pygame import pygame
except:
pass
else:
import os.path import os.path
import sys import sys
pygame.init() pygame.init()