summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--repa/common.py2
-rw-r--r--repa/obs.py2
-rw-r--r--repa/update.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/repa/common.py b/repa/common.py
index c28fc98..f9797bc 100644
--- a/repa/common.py
+++ b/repa/common.py
@@ -181,7 +181,7 @@ def retry(exceptions, tries=10, sleep=1):
try:
return func(*args, **kwargs)
except CancelRetryError as err:
- raise err.typ, err.val, err.backtrace
+ raise err.typ (err.val, err.backtrace)
except exceptions as err:
if attempt >= tries:
raise
diff --git a/repa/obs.py b/repa/obs.py
index 2796e84..1ac67e5 100644
--- a/repa/obs.py
+++ b/repa/obs.py
@@ -258,7 +258,7 @@ class OBS(OSC):
def get_file_list(self, prj, pkg):
"""Get file list from OBS."""
url = core.makeurl(self.apiurl,
- ['source', prj, pkg]);
+ ['source', prj, pkg])
files=[]
try:
xml = self.core_http(core.http_GET, url).read()
diff --git a/repa/update.py b/repa/update.py
index fbf6f78..d9e3685 100644
--- a/repa/update.py
+++ b/repa/update.py
@@ -33,7 +33,7 @@ import sys
import json
from xml.etree import cElementTree as ET
-from repa.common import get_project_by_name
+from repa.common import get_project_by_name, RepaException
from repa.obs import OBS
from repa.main import sub_main
@@ -70,7 +70,7 @@ def update(obs, name, target, ref_target_prj):
else:
raise RepaException("update is not supported. "
"ref_obs_target_prj values: %s" % \
- (ref_obs_target_prj))
+ (ref_target_prj))
if not obs.exists(ref_target_prj):
raise RepaException("update is not supported. "