Closed ghost closed 5 years ago
Well, that error is raised when you don't have the d2d_out_dir
member variable for an instance.
As far as I can see, it first appears in line 326, function parse_d2d_filelist
of file src/docserv/deliverable.py
(master). If this function is never called, no variable will be set for a Deliverable.
To avoid such errors, I always recommend to set all member variables inside __init__
like this:
class Deliverable:
def __init__(self, parent, dc_file, dir_struct_paths, build_format, subdeliverables):
# ...
self.d2d_out_dir = "" # or better None ?
I don't know which would be the preferred default value of this variable.
... I have a local fix for this but still need to test/push/release.
It's just a try/except block that makes the build fail if the variable does not exist. :)
Let's declare this fixed because the traceback is gone. But iirc, the thread hangs may still be exist. So... closing this is a bit dodgy.
Not quite sure why this is happening -- maybe d2d failed not so nicely?