diff --git a/storage/cloud.py b/storage/cloud.py index 561ddd88f..74d205bf3 100644 --- a/storage/cloud.py +++ b/storage/cloud.py @@ -182,7 +182,7 @@ class _CloudStorage(BaseStorageV2): **self._upload_params) def stream_write(self, path, fp, content_type=None, content_encoding=None): - """ Writes the data found in the file-like stream tot he given path. Raises an IOError + """ Writes the data found in the file-like stream to the given path. Raises an IOError if the write fails. """ _, write_error = self._stream_write_internal(path, fp, content_type, content_encoding) diff --git a/util/verifyplacements.py b/util/verifyplacements.py index 5427d38ee..2fb363cea 100644 --- a/util/verifyplacements.py +++ b/util/verifyplacements.py @@ -7,7 +7,6 @@ the database is removed. """ import logging -import features from peewee import fn @@ -24,7 +23,7 @@ LOCATION_MAP = {} def _get_location_row(location): if location in LOCATION_MAP: return LOCATION_MAP[location] - + location_row = ImageStorageLocation.get(name=location) LOCATION_MAP[location] = location_row return location_row