Skip to content

Commit

Permalink
fixed filepath typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffykraken committed Mar 16, 2019
1 parent c526935 commit c7cb946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bvgsensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def fetchDataFromURL(self):
# json.writes(response)
self._cache_creation_date = datetime.now(pytz.timezone(self._timezone))
except IOError as e:
_LOGGER.error("Could not write file. Please check your configuration and read/write access for path:{}".format(self.cachePath))
_LOGGER.error("Could not write file. Please check your configuration and read/write access for path:{}".format(self.file_path))
_LOGGER.error("I/O error({}): {}".format(e.errno, e.strerror))
except URLError as e:
if self._con_state.get(CONNECTION_STATE) is CON_STATE_ONLINE:
Expand All @@ -191,7 +191,7 @@ def fetchDataFromFile(self):
with open("{}{}".format(self.file_path, self.file_name), 'r') as fd:
self.data = json.load(fd)
except IOError as e:
_LOGGER.error("Could not read file. Please check your configuration and read/write access for path: {}".format(self.cachePath))
_LOGGER.error("Could not read file. Please check your configuration and read/write access for path: {}".format(self.file_path))
_LOGGER.error("I/O error({}): {}".format(e.errno, e.strerror))

def getSingleConnection(self, direction, min_due_in, nmbr):
Expand Down

0 comments on commit c7cb946

Please sign in to comment.