Skip to content

Commit fbd35b5

Browse files
committed
Fix formatting issues
1 parent cca24ea commit fbd35b5

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

vk_api/audio.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,17 @@ def get(self, owner_id=None, album_id=None, offset=0):
2525
"""
2626

2727
if owner_id is None and album_id is None:
28-
raise TypeError("get() missing 1 required argument: 'album_id' or 'owner_id'")
28+
raise TypeError(
29+
'get() missing 1 required argument: album_id or owner_id'
30+
)
2931
elif owner_id is not None and album_id is not None:
30-
raise TypeError("get() too many arguments")
32+
raise TypeError('get() too many arguments')
3133

3234
id = owner_id
33-
url = "https://m.vk.com/audios{}"
35+
url = 'https://m.vk.com/audios{}'
3436
if album_id is not None:
3537
id = album_id
36-
url = "https://m.vk.com/audio?act=audio_playlist{}"
38+
url = 'https://m.vk.com/audio?act=audio_playlist{}'
3739

3840
response = self._vk.http.get(
3941
url.format(id),

0 commit comments

Comments
 (0)