Skip to content

Commit

Permalink
print the real name of the system, not what the user typed
Browse files Browse the repository at this point in the history
  • Loading branch information
bgol committed Oct 16, 2014
1 parent 93998f3 commit 55bfac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tradedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def lookupStation(self, name, system=None):
# If we only matched a system name, ensure that it's a single station system
# otherwise they need to specify a station name.
if len(system.stations) != 1:
raise SystemNotStationError("System '%s' has %d stations, please specify a station instead." % (name, len(system.stations)))
raise SystemNotStationError("System '%s' has %d stations, please specify a station instead." % (system.name(), len(system.stations)))
return system.stations[0]


Expand Down

0 comments on commit 55bfac3

Please sign in to comment.