mnemosyne.script: crash on finalise
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Mnemosyne Project |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
The following code throws an error (on your pbienst branch, as well as the mnemosyne-proj branch (which requires the fix from 2087 from your pbienst branch)):
from mnemosyne.script import Mnemosyne
m = Mnemosyne(None)
m.finalise()
An unexpected error has occurred.
Please forward the following info to the developers:
Traceback (innermost last):
File "./test.py", line 12, in <module>
m.finalise()
File "/home/
self.
File "/home/
component.
File "/home/
for component in self.instantiat
AttributeError: 'ScriptMainWidget' object has no attribute 'instantiated_
The reason seems to be that `instantiated_
This prevents it from crashing, but I'm not sure if it's the right fix:
=== modified file 'mnemosyne/
--- mnemosyne/
+++ mnemosyne/
@@ -16,6 +16,7 @@
class ScriptMainWidge
def __init__(self, component_manager):
+ super()
committed in pbienst, thanks!