Fixed missing default keyword arg

This commit is contained in:
A_D authored and Athanasius committed 2021-04-01 14:45:46 +01:00
1 parent bfe114ba10
commit a1576e9979
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -1135,7 +1135,7 @@ class AppWindow(object):
return plug.invoke(config.get_str('shipyard_provider'), 'EDSY', 'shipyard_url', monitor.ship(), monitor.is_beta)
# Avoid file length limits if possible
provider = config.get_str('shipyard_provider', 'EDSY')
provider = config.get_str('shipyard_provider', default='EDSY')
target = plug.invoke(provider, 'EDSY', 'shipyard_url', monitor.ship(), monitor.is_beta)
file_name = join(config.app_dir, "last_shipyard.html")
+2 -1
View File
@@ -728,7 +728,8 @@ def journal_entry( # noqa: C901
this.commodities = this.outfitting = this.shipyard = None
this.marketId = entry['MarketID']
path = pathlib.Path(config.get_str('journaldir', str(config.default_journal_dir))) / f'{entry["event"]}.json'
path = pathlib.Path(config.get_str('journaldir', default=str(
config.default_journal_dir))) / f'{entry["event"]}.json'
with path.open('rb') as f:
entry = json.load(f)
if entry['event'] == 'Market':