Fix crash when duplicating flow

This commit is contained in:
harsh vijay 2017-03-13 02:23:52 +05:30 committed by GitHub
parent 9a88594684
commit a8f7c30aa0

View File

@ -113,8 +113,8 @@ class Flow(stateobject.StateObject):
def copy(self): def copy(self):
f = super().copy() f = super().copy()
f.id = str(uuid.uuid4()) f.id = str(uuid.uuid4())
f.live = False; f.live = False
if self.reply != None: if self.reply is not None:
f.reply = controller.DummyReply() f.reply = controller.DummyReply()
return f return f