Skip to content

Add status to messages#82

Merged
rodrigotuna merged 2 commits intodevfrom
add-status-to-messages
Dec 16, 2024
Merged

Add status to messages#82
rodrigotuna merged 2 commits intodevfrom
add-status-to-messages

Conversation

@rodrigotuna
Copy link
Contributor

This PR adds a status to the messages sent by the file-tracker. It also refactors the code to handle exceptions.

channel.send(json.dumps(content))
response = OperationResponse()
try:
if message == "ls":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the operations could be class based (members of a single class) instead of function based to avoid the if-elif block, but that refactor can be done later.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed

@rodrigotuna rodrigotuna merged commit 1a9729d into dev Dec 16, 2024
@rodrigotuna rodrigotuna deleted the add-status-to-messages branch December 16, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments