Skip to content

Commit

Permalink
Fixes crash in outfitting. Adds info to Ls from star prompt.
Browse files Browse the repository at this point in the history
  • Loading branch information
tlund committed Oct 19, 2015
1 parent 2e61a70 commit c07be5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/edapi_plug.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import textwrap
import time

__version_info__ = ('3', '5', '2')
__version_info__ = ('3', '5', '3')
__version__ = '.'.join(__version_info__)

# ----------------------------------------------------------------
Expand Down Expand Up @@ -3651,6 +3651,7 @@ def run(self):
try:
lsFromStar = int(float(lsFromStar))
except:
print("That doesn't seem to be a number. Defaulting to zero.")
lsFromStar = 0
blackMarket = input(
"Black market present (Y, N or enter for ?): "
Expand Down Expand Up @@ -3927,7 +3928,7 @@ def commodity_int(key):
)

eddn_modules = []
for key in api.profile['lastStarport'].get('modules'):
for key in api.profile['lastStarport'].get('modules', ()):
key = int(key)
if key in modules:
eddn_modules.append(modules[key])
Expand Down

0 comments on commit c07be5d

Please sign in to comment.