diff --git a/Mopy/bash/bosh/__init__.py b/Mopy/bash/bosh/__init__.py index 95fbb4360e..13d01f3460 100644 --- a/Mopy/bash/bosh/__init__.py +++ b/Mopy/bash/bosh/__init__.py @@ -900,7 +900,7 @@ def getStringsPaths(self, lang): # patch BSA (which only exists in SSE) will always load after the interface # BSA and hence should win all conflicts (including strings). _bsa_heuristics = list(enumerate((u'main', u'patch', u'interface'))) - def _find_string_bsas(self, cached_ini_info=(None, None, None)): + def _find_string_bsas(self, cached_ini_info=None): """Return a list of BSAs to get strings files from. Note that this is *only* meant for strings files. It sorts the list in such a way as to prioritize files that are likely to contain the strings, instead of @@ -3107,9 +3107,9 @@ def get_bsa_lo(self, for_plugins, cached_ini_info=None): :param cached_ini_info: Can contain the result of calling get_bsas_from_inis, in which case calling that (fairly expensive) method will be skipped.""" - try: + if cached_ini_info: available_bsas, bsa_lo, bsa_cause = cached_ini_info - except TypeError: # cached_ini_info is None - fetch it from disk + else: # cached_ini_info is None - fetch it from disk available_bsas, bsa_lo, bsa_cause = self.get_bsas_from_inis() # BSAs loaded based on plugin name load in the middle of the pack for i, p in enumerate(for_plugins):