Skip to content

Commit d4d9dff

Browse files
committed
Fix missing workflow lookup to return None for 404 handling
1 parent ffc136f commit d4d9dff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/model/workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def insert(self, graphml, latestHash):
3232
def get(self, serverID):
3333
cl = self.collection.find_one({'serverID': serverID})
3434
if not cl:
35-
return False, 'Record Not Found'
35+
return None
3636
return cl['graphml']
3737

3838
def update(self, serverID, graphml, latestHash, allHash):

0 commit comments

Comments
 (0)