mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 01:48:40 +00:00
use try in case pygame isnt installed
This commit is contained in:
parent
a4373ef156
commit
5ad442341f
1 changed files with 16 additions and 12 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue