We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7259ef4 commit 5c70b66Copy full SHA for 5c70b66
pymysqlreplication/gtid.py
@@ -10,7 +10,7 @@ class Gtid(object):
10
def parse_interval(interval):
11
m = re.search('^([0-9]+)(?:-([0-9]+))?$', interval)
12
if not m:
13
- raise ValueError('GTID format is incorrect')
+ raise ValueError('GTID format is incorrect: %r' % (interval, ))
14
if not m.group(2):
15
return (int(m.group(1)))
16
else:
@@ -21,7 +21,7 @@ def parse_interval(interval):
21
def parse(gtid):
22
m = re.search('^([0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12})((?::[0-9-]+)+)$', gtid)
23
24
+ raise ValueError('GTID format is incorrect: %r' % (gtid, ))
25
26
sid = m.group(1)
27
intervals = m.group(2)
0 commit comments