Skip to content

Commit

Permalink
#13 catches specific struct error instead of all exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRies committed Jul 27, 2016
1 parent e65ac12 commit d5a2fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arkpy/arktypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def _set_from_stream(self, stream):
pos = stream.tell()
try:
value = stream.readNullTerminatedString()
except:
except struct.error:
print 'Exception in array string handling'
stream.base_stream.seek(pos, 0)
unicode_size = 2
Expand Down

0 comments on commit d5a2fbb

Please sign in to comment.