use try in case pygame isnt installed
This commit is contained in:
parent
a4373ef156
commit
5ad442341f
@ -149,7 +149,11 @@ class TorrentNotification:
|
||||
|
||||
def play_sound(self):
|
||||
if not deluge.common.windows_check():
|
||||
try:
|
||||
import pygame
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
import os.path
|
||||
import sys
|
||||
pygame.init()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user