fix loading cache package in tile server

This commit is contained in:
Laura Klünder 2017-12-23 20:10:05 +01:00
parent 379f7b91ae
commit 30c7d29e9f

View file

@ -154,7 +154,7 @@ class TileServer:
if self.cache_package_filename != cache_package_filename:
logger.debug('Loading new cache package in worker.')
self.cache_package_filename = cache_package_filename
with open(self.cache_package_filename, 'wb') as f:
with open(self.cache_package_filename, 'rb') as f:
self.cache_package = pickle.load(f)
return self.cache_package