summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2018-08-13 14:52:16 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2018-08-22 18:00:06 +0000
commitbbee6fac338b54a3f541bec06ef9bf554aa7f83a (patch)
tree5138e9c8b61f697d4db93beb721b88ff1fcaf803
parentbbed8013ccc0b8de5dd0a77a9f764879babb3e02 (diff)
Stipulate which error is expected in try/except
PEP 8 wisely advises against the use of naked except: (unless re-raising the error). Change-Id: Ia0dfdb48b330d33ad370bdb9f6b205046aa919da Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
-rwxr-xr-xutil/local_database/cldr2qlocalexml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/local_database/cldr2qlocalexml.py b/util/local_database/cldr2qlocalexml.py
index ce45f631a6..8c730cdcde 100755
--- a/util/local_database/cldr2qlocalexml.py
+++ b/util/local_database/cldr2qlocalexml.py
@@ -243,7 +243,7 @@ def _generateLocaleInfo(path, language_code, script_code, country_code, variant_
numbering_system = None
try:
numbering_system = findEntry(path, "numbers/defaultNumberingSystem")
- except:
+ except xpathlite.Error:
pass
def findEntryDef(path, xpath, value=''):
try: