Skip to content

Commit 2b78051

Browse files
authored
Merge pull request #210 from Dmitriusan/master
Remove useless parentheses from error messages
2 parents 60a64b9 + 75f8202 commit 2b78051

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

iptc/ip4tc.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,7 @@ def set_policy(self, chain, policy, counters=None):
17141714
rv = self._iptc.iptc_set_policy(chain.encode(), policy.encode(),
17151715
cntrs, self._handle)
17161716
if rv != 1:
1717-
raise IPTCError("can't set policy %s on chain %s: %s)" %
1717+
raise IPTCError("can't set policy %s on chain %s: %s" %
17181718
(policy, chain, self.strerror()))
17191719

17201720
@autocommit
@@ -1739,7 +1739,7 @@ def append_entry(self, chain, entry):
17391739
ct.cast(entry, ct.c_void_p),
17401740
self._handle)
17411741
if rv != 1:
1742-
raise IPTCError("can't append entry to chain %s: %s)" %
1742+
raise IPTCError("can't append entry to chain %s: %s" %
17431743
(chain, self.strerror()))
17441744

17451745
@autocommit
@@ -1749,7 +1749,7 @@ def insert_entry(self, chain, entry, position):
17491749
ct.cast(entry, ct.c_void_p),
17501750
position, self._handle)
17511751
if rv != 1:
1752-
raise IPTCError("can't insert entry into chain %s: %s)" %
1752+
raise IPTCError("can't insert entry into chain %s: %s" %
17531753
(chain, self.strerror()))
17541754

17551755
@autocommit
@@ -1759,7 +1759,7 @@ def replace_entry(self, chain, entry, position):
17591759
ct.cast(entry, ct.c_void_p),
17601760
position, self._handle)
17611761
if rv != 1:
1762-
raise IPTCError("can't replace entry in chain %s: %s)" %
1762+
raise IPTCError("can't replace entry in chain %s: %s" %
17631763
(chain, self.strerror()))
17641764

17651765
@autocommit
@@ -1769,7 +1769,7 @@ def delete_entry(self, chain, entry, mask):
17691769
ct.cast(entry, ct.c_void_p),
17701770
mask, self._handle)
17711771
if rv != 1:
1772-
raise IPTCError("can't delete entry from chain %s: %s)" %
1772+
raise IPTCError("can't delete entry from chain %s: %s" %
17731773
(chain, self.strerror()))
17741774

17751775
def first_rule(self, chain):

0 commit comments

Comments
 (0)