eagleflo / mpyq

Python library for reading MPQ archives.
BSD 2-Clause "Simplified" License
100 stars 23 forks source link

Variable header not initialized for invalid file. #16

Closed tkrajina closed 11 years ago

tkrajina commented 11 years ago

If invoking this script for an invalid MPQ file, the header variable is not initalized and the script fails with the following error:

UnboundLocalError: local variable 'header' referenced before assignment

Better to throw a more specific message.

eagleflo commented 11 years ago

You're right. Thanks for the contribution!