Skip to content

Commit 8258348

Browse files
authored
Fix TypeError: cannot unpack non-iterable NoneType object when registering an axscript client ScriptItem (#2513)
1 parent ec40932 commit 8258348

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ https://mhammond.github.io/pywin32_installers.html .
1414
Coming in build 311, as yet unreleased
1515
--------------------------------------
1616
* Fixed a regression that broke special __dunder__ methods with CoClass. (#1870, #2493, @Avasam, @geppi)
17+
* Fixed `TypeError: cannot unpack non-iterable NoneType object` when registering an axscript client ScriptItem (#2513, @Avasam)
1718
* Fixed a memory leak when SafeArrays are used as out parameters (@the-snork)
1819
* Fixed dispatch handling for properties (@the-snork)
1920

com/win32comext/axscript/client/pyscript.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def Register(self):
158158
self.attributeObject = NamedScriptAttribute(self)
159159
if self.dispatch:
160160
# Need to avoid the new Python "lazy" dispatch behaviour.
161-
olerepr, clsid = None
161+
olerepr = clsid = None
162162
try:
163163
engine = self.GetEngine()
164164
typeinfo = self.dispatch.GetTypeInfo()

0 commit comments

Comments
 (0)