Skip to content

Commit

Permalink
fix add command
Browse files Browse the repository at this point in the history
  • Loading branch information
sephii committed Nov 2, 2012
1 parent 0b879e7 commit 7adf48a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions taxi/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ def run(self):
except CancelException:
return

if settings.activity_exists(alias):
mapping = settings.get_projects()[alias]
overwrite = terminal.overwrite_alias(alias, mapping)
if self.settings.activity_exists(alias):
mapping = self.settings.get_projects()[alias]
overwrite = self.view.overwrite_alias(alias, mapping)

if overwrite == False:
return
elif ovewrite == True:
elif overwrite == True:
retry = False
# User chose "retry"
else:
Expand Down
2 changes: 1 addition & 1 deletion taxi/ui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def alias_added(self, alias, mapping):
mapping_name = Project.tuple_to_str(mapping)

self.msg(u"The following alias has been added to your configuration "
"file: %s = %s" % ((alias) + mapping_name))
"file: %s = %s" % (alias, mapping_name))

def _show_mapping(self, mapping, project, alias_first=True):
(alias, t) = mapping
Expand Down

0 comments on commit 7adf48a

Please sign in to comment.