Skip to content

Commit

Permalink
Don't try to parse Station/System objects as names
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Nov 29, 2014
1 parent f3d9f20 commit 0ecebe6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tradedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,9 @@ def lookupPlace(self, name):
matches so that exact matches win, and only inferior close
matches are looked at if no exacts are found.
"""
if isinstance(name, System) or isinstance(name, Station):
return name

slashPos = name.find('/')
if slashPos > 0:
# Slash indicates it's, e.g., AULIN/ENTERPRISE
Expand Down

0 comments on commit 0ecebe6

Please sign in to comment.