summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/common/Resource.py
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2012-11-15 20:35:57 +0100
committerXisco Fauli <anistenis@gmail.com>2012-11-21 01:07:59 +0100
commit34fbbe1af85c8120a2e76b37497d6282e87c1af6 (patch)
treebbfcd4daa4fac8a0f31ebf994999cbd61f85d115 /wizards/com/sun/star/wizards/common/Resource.py
parentbb16e912760df54dd77ffc216cc5dee68a48e140 (diff)
pyfax: exceptions are python3 compatible
Change-Id: Ife2a935b25928db154756494798a5e9b619f902a
Diffstat (limited to 'wizards/com/sun/star/wizards/common/Resource.py')
-rw-r--r--wizards/com/sun/star/wizards/common/Resource.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wizards/com/sun/star/wizards/common/Resource.py b/wizards/com/sun/star/wizards/common/Resource.py
index fc607ea3a826..52eb40f826e7 100644
--- a/wizards/com/sun/star/wizards/common/Resource.py
+++ b/wizards/com/sun/star/wizards/common/Resource.py
@@ -37,14 +37,14 @@ class Resource(object):
if self.xStringIndexAccess is None:
raise Exception ("could not initialize xStringIndexAccess")
- except Exception, exception:
+ except Exception:
traceback.print_exc()
self.showCommonResourceError(self.xMSF)
def getResText(self, nID):
try:
return self.xStringIndexAccess.getByIndex(nID)
- except Exception, exception:
+ except Exception:
traceback.print_exc()
raise ValueError("Resource with ID not " + str(nID) + " not found")
@@ -56,7 +56,7 @@ class Resource(object):
ResArray[i] = getResText(nID + i)
i += 1
return ResArray
- except Exception, exception:
+ except Exception:
traceback.print_exc()
raise ValueError("Resource with ID not" + str(nID) + " not found")