commit/StationPlaylist: josephsl: 6.0 beta 6: catch another attribute error due to not finding parent object.

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Thu, 12 Nov 2015 04:29:12 -0000

1 new commit in StationPlaylist:

https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/ab5afb90060a/
Changeset: ab5afb90060a
Branch: master
User: josephsl
Date: 2015-11-12 04:27:24+00:00
Summary: 6.0 beta 6: catch another attribute error due to not finding
parent object.

Affected #: 1 file

diff --git a/addon/appModules/splstudio/__init__.py
b/addon/appModules/splstudio/__init__.py
index 4884684..6cc7bfa 100755
--- a/addon/appModules/splstudio/__init__.py
+++ b/addon/appModules/splstudio/__init__.py
@@ -448,13 +448,16 @@ class AppModule(appModuleHandler.AppModule):
if (obj.name ==
"00:{0:02d}".format(splconfig.SPLConfig["SongRampTime"])
and splconfig.SPLConfig["SaySongRamp"]):
self.alarmAnnounce(obj.name,
512, 400, intro=True)
- # Hack: auto scroll in Studio itself might be
broken (according to Brian Hartgen), so force NVDA to announce currently
playing track automatically if checked.
+ # Hack: auto scroll in Studio itself might be
broken (according to Brian Hartgen), so force NVDA to announce currently
playing track automatically if told to do so.
if splconfig.SPLConfig["SayPlayingTrackName"]:
- statusBarFG = obj.parent.parent.parent
- if statusBarFG is not None:
- statusBar =
statusBarFG.previous.previous.previous
- if statusBar is not None and
statusBar.firstChild is not None and statusBar.firstChild.role == 27:
- ui.message(obj.name)
+ try:
+ statusBarFG =
obj.parent.parent.parent
+ if statusBarFG is not None:
+ statusBar =
statusBarFG.previous.previous.previous
+ if statusBar is not
None and statusBar.firstChild is not None and statusBar.firstChild.role == 27:
+
ui.message(obj.name)
+ except AttributeError:
+ pass
nextHandler()

# JL's additions

Repository URL: https://bitbucket.org/nvdaaddonteam/stationplaylist/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.

Other related posts:

  • » commit/StationPlaylist: josephsl: 6.0 beta 6: catch another attribute error due to not finding parent object. - commits-noreply