pytec: prevent uninitialized ch from crashing the code below

pull/41/head
topquark12 2021-01-06 10:33:50 +08:00
parent 9e215830aa
commit 089f8a0dea
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ def main():
# Sometimes report_mode may yeild empty object
except KeyError:
pass
continue
temperature = ch['temperature']