summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-05-20 00:14:54 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-05-20 00:14:54 +0200
commit2817e98ee98b5f7fa31c9225fdc579e89849f034 (patch)
tree1bb5a0d08cd8de22a937074964ef11f2f6b7e36e
parente3a855888fe6783056087357c050ee2581e57e6c (diff)
downloadportato-2817e98ee98b5f7fa31c9225fdc579e89849f034.tar.gz
portato-2817e98ee98b5f7fa31c9225fdc579e89849f034.tar.bz2
portato-2817e98ee98b5f7fa31c9225fdc579e89849f034.zip
Hopefully fixed the new-version plugin
-rw-r--r--plugins/new_version.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/new_version.py b/plugins/new_version.py
index e741348..24d7d6f 100644
--- a/plugins/new_version.py
+++ b/plugins/new_version.py
@@ -34,6 +34,12 @@ class NewVersionFinder(Plugin):
def find_version (self, rev):
try:
+ plugin.load_plugins() # to have lp: addresses parsed
+ except Exception, e:
+ warning("NEW_VERSION :: Exception occured while loading bzr-plugins: %s", str(e))
+ return
+
+ try:
b = branch.Branch.open(REPOURI)
except Exception, e:
warning("NEW_VERSION :: Exception occured while accessing the remote branch: %s", str(e))
@@ -63,8 +69,6 @@ class NewVersionFinder(Plugin):
rev = v[-1]
- plugin.load_plugins() # to have lp: addresses parsed
-
self.start_thread(rev)
return rev