Fix failure to detect offsets when running out of data.
This commit is contained in:
parent
bafe844402
commit
eb8264c553
@ -2128,7 +2128,7 @@ class ImportPopn(ImportBase):
|
|||||||
print("Successfully parsed game DB!")
|
print("Successfully parsed game DB!")
|
||||||
|
|
||||||
return songs
|
return songs
|
||||||
except (UnicodeError, InvalidOffsetException):
|
except (UnicodeError, InvalidOffsetException, struct.error):
|
||||||
# These offsets are possibly not correct, so try the next configuration.
|
# These offsets are possibly not correct, so try the next configuration.
|
||||||
print("Failed to parse game DB using current inferred data version!")
|
print("Failed to parse game DB using current inferred data version!")
|
||||||
pass
|
pass
|
||||||
@ -3166,7 +3166,7 @@ class ImportIIDX(ImportBase):
|
|||||||
|
|
||||||
# We only import one or the other here, I know its a weird function.
|
# We only import one or the other here, I know its a weird function.
|
||||||
return [], qpros
|
return [], qpros
|
||||||
except (UnicodeError, InvalidOffsetException):
|
except (UnicodeError, InvalidOffsetException, struct.error):
|
||||||
# These offsets are possibly not correct, so try the next configuration.
|
# These offsets are possibly not correct, so try the next configuration.
|
||||||
print("Failed to parse game DB using current inferred data version!")
|
print("Failed to parse game DB using current inferred data version!")
|
||||||
pass
|
pass
|
||||||
@ -3748,7 +3748,7 @@ class ImportDDR(ImportBase):
|
|||||||
print("Successfully parsed game DB!")
|
print("Successfully parsed game DB!")
|
||||||
|
|
||||||
return songs
|
return songs
|
||||||
except (UnicodeError, InvalidOffsetException):
|
except (UnicodeError, InvalidOffsetException, struct.error):
|
||||||
# These offsets are possibly not correct, so try the next configuration.
|
# These offsets are possibly not correct, so try the next configuration.
|
||||||
print("Failed to parse game DB using current inferred data version!")
|
print("Failed to parse game DB using current inferred data version!")
|
||||||
pass
|
pass
|
||||||
@ -4843,7 +4843,7 @@ class ImportReflecBeat(ImportBase):
|
|||||||
print("Successfully parsed game DB!")
|
print("Successfully parsed game DB!")
|
||||||
|
|
||||||
return songs
|
return songs
|
||||||
except (UnicodeError, InvalidOffsetException):
|
except (UnicodeError, InvalidOffsetException, struct.error):
|
||||||
# These offsets are possibly not correct, so try the next configuration.
|
# These offsets are possibly not correct, so try the next configuration.
|
||||||
print("Failed to parse game DB using current inferred data version!")
|
print("Failed to parse game DB using current inferred data version!")
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user