Skip to content

Commit

Permalink
Corrected error code.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Aug 24, 2024
1 parent 3270100 commit 11a6099
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions load.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@


async def load_redis():
# instantiate the class that does all the work
"""
instantiate the class that does all the work
:return: Exit code (0 on success, 1 on failure)
"""
loader = NodeLoader()

# call to load redis instances with normalized node data
Expand All @@ -13,9 +17,10 @@ async def load_redis():
# check the return
if not success:
print('Failed to load node normalization data.')
return 1
else:
print('Success')
return success
return 0


if __name__ == '__main__':
Expand Down

0 comments on commit 11a6099

Please sign in to comment.