Skip to content

Commit dcfd4b5

Browse files
author
prostomarkeloff
authored
some fixes
1 parent 70d2a1a commit dcfd4b5

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

vk_api/keyboard.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ def add_location_button(self, payload=None):
124124
current_line = self.lines[-1]
125125

126126
if len(current_line) != 0:
127-
raise ValueError('This type of button takes the entire width of the line')
127+
raise ValueError('
128+
This type of button takes the entire width of the line'
129+
)
128130

129131
if payload is not None and not isinstance(payload, six.string_types):
130132
payload = sjson_dumps(payload)
@@ -152,7 +154,9 @@ def add_vkpay_button(self, hash, payload=None):
152154
current_line = self.lines[-1]
153155

154156
if len(current_line) != 0:
155-
raise ValueError('This type of button takes the entire width of the line')
157+
raise ValueError('
158+
This type of button takes the entire width of the line'
159+
)
156160

157161
if payload is not None and not isinstance(payload, six.string_types):
158162
payload = sjson_dumps(payload)
@@ -188,7 +192,9 @@ def add_vkapps_button(self, app_id, owner_id, label, hash, payload=None):
188192
current_line = self.lines[-1]
189193

190194
if len(current_line) != 0:
191-
raise ValueError('This type of button takes the entire width of the line')
195+
raise ValueError('
196+
This type of button takes the entire width of the line'
197+
)
192198

193199
if payload is not None and not isinstance(payload, six.string_types):
194200
payload = sjson_dumps(payload)

0 commit comments

Comments
 (0)