Skip to content

Commit 6333bb1

Browse files
committed
Use Exception instead of Error
1 parent 2a6dfdd commit 6333bb1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arabic_reshaper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ def __init__(self, configuration=None, configuration_file=None):
12111211
]
12121212

12131213
if not os.path.exists(configuration_files[0]):
1214-
raise Error(
1214+
raise Exception(
12151215
'Default configuration file {} not found,' +
12161216
' check the module installation.'.format(
12171217
configuration_file,
@@ -1230,7 +1230,7 @@ def __init__(self, configuration=None, configuration_file=None):
12301230

12311231
if configuration_file:
12321232
if not os.path.exists(configuration_file):
1233-
raise Error(
1233+
raise Exception(
12341234
'Configuration file {} not found{}.'.format(
12351235
configuration_file,
12361236
loaded_from_envvar and (

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
setup(
77
name = "arabic_reshaper",
88
description = "Reconstruct Arabic sentences to be used in applications that don't support Arabic",
9-
version = '2.0.2',
9+
version = '2.0.3',
1010
platforms = "ALL",
1111
license = "GPL",
1212
packages = ['arabic_reshaper'],

0 commit comments

Comments
 (0)