]> projects.mako.cc - mw/commitdiff
Merge remote branch 'upstream/master'
authorreagle <joseph.2008@reagle.org>
Wed, 2 Feb 2011 22:19:15 +0000 (17:19 -0500)
committerreagle <joseph.2008@reagle.org>
Wed, 2 Feb 2011 22:19:15 +0000 (17:19 -0500)
Conflicts:
src/mw/clicommands.py

src/mw/clicommands.py

index 2681c438ee99aa4d5da20856340eeeb0fbfe43b4..dcc5682d58a70874b6381cc7a6ce191cfc8b7006 100644 (file)
@@ -319,11 +319,11 @@ class CommitCommand(CommandBase):
                 if self.options.bot:
                     data['bot'] = 'bot'
                 response = self.api.call(data)
-                 if 'error' in response:
-                     if 'code' in response['error']:
-                         if response['error']['code'] == 'permissiondenied':
-                             print 'Permission denied -- try running "mw login"'
-                             return
+                if 'error' in response:
+                    if 'code' in response['error']:
+                        if response['error']['code'] == 'permissiondenied':
+                            print 'Permission denied -- try running "mw login"'
+                            return
                 if response['edit']['result'] == 'Success':
                     if 'nochange' in response['edit']:
                         print 'warning: no changes detected in %s - ' \

Benjamin Mako Hill || Want to submit a patch?