companion: Clean up some flake8 and mypy gripes

This commit is contained in:
Athanasius committed 2021-08-07 14:08:16 +01:00
1 parent bd4145c2b3
commit bb54bc25b4
1 file changed
+3 -2
+3 -2
View File
@@ -437,7 +437,7 @@ class Auth(object):
cmdrs = config.get_list('cmdrs', default=[])
idx = cmdrs.index(cmdr)
to_set = config.get_list('fdev_apikeys', default=[])
to_set = to_set + [''] * (len(cmdrs) - len(to_set))
to_set = to_set + [''] * (len(cmdrs) - len(to_set)) # type: ignore
to_set[idx] = ''
if to_set is None:
@@ -670,7 +670,8 @@ class Session(object):
logger.warning("No lastStarport name!")
return data
# WORKAROUND: n/a | 06-08-2021: Issue 1198 and https://issues.frontierstore.net/issue-detail/40706 -- strip "+" chars off star port names returned by the CAPI
# WORKAROUND: n/a | 06-08-2021: Issue 1198 and https://issues.frontierstore.net/issue-detail/40706
# -- strip "+" chars off star port names returned by the CAPI
last_starport_name = last_starport["name"] = last_starport_name.rstrip(" +")
services = last_starport.get('services', {})