Skip to content

Commit

Permalink
Merge pull request #2363 from SpamExperts/unbound_local_var_fix
Browse files Browse the repository at this point in the history
Ensure that the `err_code` variable is initialized before using.
  • Loading branch information
wiredfool committed Jun 14, 2017
2 parents 95eee43 + d2ce692 commit f0c3df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PIL/ImageFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def load(self):
self.map = None

self.load_prepare()

err_code = -3 # initialize to unknown error
if not self.map:
# sort tiles in file order
self.tile.sort(key=_tilesort)
Expand Down

0 comments on commit f0c3df0

Please sign in to comment.