Skip to content

Commit

Permalink
Ooops, indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Aug 19, 2014
1 parent a9e9aec commit 387ae06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trade.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def parse_avoids(avoidances):
if not (item or system or station):
raise LookupError("Unknown item/system/station: %s" % avoid)

# But if it matched more than once, whine about ambiguity
# But if it matched more than once, whine about ambiguity
if item and system: raise AmbiguityError('Avoidance', avoid, item, system.str())
if item and station: raise AmbiguityError('Avoidance', avoid, item, station.str())
if system and station and station.system != system: raise AmbiguityError('Avoidance', avoid, system.str(), station.str())
Expand Down Expand Up @@ -210,9 +210,9 @@ def parse_command_line():
if args.unique and args.hops >= len(tdb.stations):
raise ValueError("Requested unique trip with more hops than there are stations...")
if args.unique:
if (originStation and originStation == finalStation) or
if ((originStation and originStation == finalStation) or
(originStation and originStation == viaStation) or
(viaStation and viaStation == finalStation):
(viaStation and viaStation == finalStation)):
raise ValueError("from/to/via repeat conflicts with --unique")

if args.checklist and args.routes > 1:
Expand Down

0 comments on commit 387ae06

Please sign in to comment.