Skip to content

Commit

Permalink
Fix cast to int in lsFromStar.
Browse files Browse the repository at this point in the history
  • Loading branch information
tlund committed Oct 16, 2015
1 parent 81482d3 commit 2e61a70
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 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', '1')
__version_info__ = ('3', '5', '2')
__version__ = '.'.join(__version_info__)

# ----------------------------------------------------------------
Expand Down Expand Up @@ -3648,7 +3648,10 @@ def run(self):
lsFromStar = input(
"Distance from star (enter for 0): "
) or 0
lsFromStar = int(lsFromStar)
try:
lsFromStar = int(float(lsFromStar))
except:
lsFromStar = 0
blackMarket = input(
"Black market present (Y, N or enter for ?): "
) or '?'
Expand Down

0 comments on commit 2e61a70

Please sign in to comment.