From 3419e68fe08edbe0e1c3d6f955e4b37b4a49ebf2 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Fri, 1 Mar 2013 15:39:43 +0800 Subject: [PATCH] Exit when no branch nor patch available --- moodle-pull.py | 1 + 1 file changed, 1 insertion(+) diff --git a/moodle-pull.py b/moodle-pull.py index 803e0c3..53fbb2c 100755 --- a/moodle-pull.py +++ b/moodle-pull.py @@ -76,6 +76,7 @@ remoteBranch = issueInfo.get('named').get(C.get('tracker.fieldnames.%s.branch' % patchesToApply = [] if not remoteUrl or not remoteBranch: + mode = None attachments = issueInfo.get('fields').get('attachment') patches = {} for attachment in attachments: -- 2.11.0