Skip to content

Commit

Permalink
Fixed add_to_dump.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thrandis committed Feb 19, 2016
1 parent 7ddd5aa commit 7783766
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions blocks/serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ def add_to_dump(object_, file_, name, parameters=None, use_cpickle=False,
type(array_), n)

# Check that the parameters are the same that the ones in the archive.
file_.seek(0)
with closing(tarfile.TarFile(fileobj=file_, mode='r')) as tar_file:
if '_parameters' not in tar_file.getnames():
raise ValueError("There is no parameters in the archive, so" \
Expand Down

0 comments on commit 7783766

Please sign in to comment.