Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

fix unknown device name in command message #150

Merged
merged 1 commit into from
Feb 10, 2020

Conversation

hechi
Copy link
Contributor

@hechi hechi commented Feb 9, 2020

Description

Device names are retrieved by the configuration file. If an MQTT command is
handled but contains an unknown device name, which is not in the configuration
file a KeyError was thrown and the application was terminated. This commit
checks if the device name is known, if not it logs an error message but will not
fail.

Fixes KeyError exception #53

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Device names are retrieved by the configuration file. If an MQTT command is
handled but contains an unknown device name, which is not in the configuration
file an KeyError was thrown and the application was terminated. This commit
checks if the device name is known, if not it logs an error message but will not
fail.
@zewelor
Copy link
Owner

zewelor commented Feb 9, 2020

I think it sounds reasonable, lets try this, thanks.

@hechi
Copy link
Contributor Author

hechi commented Feb 9, 2020

Super :) thx

@zewelor zewelor merged commit f521453 into zewelor:master Feb 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants