Skip to content

Commit c22ff33

Browse files
authored
Update mixer.py
1 parent 4cb10cc commit c22ff33

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mixer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#
1313

1414
# pylint: disable=duplicate-code
15+
# pylint: disable=ungrouped-imports
1516
# Pour pouvoir lancer le programme avec n'importe quel fichier
1617
if __name__ == "__main__":
1718
from os.path import dirname, realpath, join
@@ -148,6 +149,7 @@ def load_sound(filename):
148149
sound = mixer.Sound(filename)
149150
sound.set_volume(0.4)
150151
return sound
152+
# pylint: disable=bare-except
151153
except:
152154
print("Unable to open file '%s'" % filename)
153155
return None

0 commit comments

Comments
 (0)