mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 03:22:39 +01:00
Remove exception handling.
This commit is contained in:
parent
7d45eabb25
commit
4748a68b6b
1 changed files with 4 additions and 5 deletions
|
|
@ -38,12 +38,11 @@ class SonosUpdate(BeetsPlugin):
|
|||
"""
|
||||
self._log.info(u'Requesting a Sonos library update...')
|
||||
|
||||
# Try to send update request.
|
||||
try:
|
||||
device = soco.discovery.any_soco()
|
||||
device.music_library.start_library_update()
|
||||
device = soco.discovery.any_soco()
|
||||
|
||||
except NoneType:
|
||||
if device:
|
||||
device.music_library.start_library_update()
|
||||
else:
|
||||
self._log.warning(u'Could not find a Sonos device.')
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue