fixing bug: AttributeError: DumpMaster instance has no attribute 'unload_script'

This commit is contained in:
Steven Van Acker 2014-02-04 14:49:51 +01:00
parent 3aa78f9ff3
commit 66da73d8a9

View File

@ -223,8 +223,7 @@ class DumpMaster(flow.FlowMaster):
def run(self): # pragma: no cover def run(self): # pragma: no cover
if self.o.rfile and not self.o.keepserving: if self.o.rfile and not self.o.keepserving:
for script in self.scripts: self.unload_scripts()
self.unload_script(script)
return return
try: try:
return flow.FlowMaster.run(self) return flow.FlowMaster.run(self)