summaryrefslogtreecommitdiff
path: root/scripting/source/pyprov/pythonscript.py
diff options
context:
space:
mode:
authorWerner Tietz <karlooforum@arcor.de>2017-04-11 01:51:11 +0200
committerMichael Stahl <mstahl@redhat.com>2017-04-12 17:33:12 +0200
commit7ef47336411389ac492729bef52fe62aebe90f5a (patch)
treeacf4e25d210e5b4a2468b6ac6ecc87e6b8a43895 /scripting/source/pyprov/pythonscript.py
parent8913353a8fd2a1d281c2d8a33ca795d97201b7bc (diff)
tdf#92007 python scripts with tuple-assignments fails on access from GUI
Change-Id: Ice1d7d92cec56751cb26cbb31a5995ab30895125 Reviewed-on: https://gerrit.libreoffice.org/36399 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'scripting/source/pyprov/pythonscript.py')
-rw-r--r--scripting/source/pyprov/pythonscript.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripting/source/pyprov/pythonscript.py b/scripting/source/pyprov/pythonscript.py
index 406693266f45..4803d0bebc23 100644
--- a/scripting/source/pyprov/pythonscript.py
+++ b/scripting/source/pyprov/pythonscript.py
@@ -405,7 +405,12 @@ class ProviderContext:
allFuncs.append(node.name)
elif isinstance(node, ast.Assign):
for target in node.targets:
- if target.id == "g_exportedScripts":
+ try:
+ identifier = target.id
+ except AttributeError:
+ identifier = ""
+ pass
+ if identifier == "g_exportedScripts":
for value in node.value.elts:
g_exportedScripts.append(value.id)
return g_exportedScripts