[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
6fe9aa632b
commit
0c546976b9
|
@ -925,7 +925,12 @@ class _Request:
|
||||||
conn = HTTPSConnection(context=SSL_CONTEXT, host=host_name)
|
conn = HTTPSConnection(context=SSL_CONTEXT, host=host_name)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
conn.request(method="POST", url=f'{host_subdir}{username}', body=data, headers=headers)
|
conn.request(
|
||||||
|
method="POST",
|
||||||
|
url=f"{host_subdir}{username}",
|
||||||
|
body=data,
|
||||||
|
headers=headers,
|
||||||
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise NetworkError(self.network, e)
|
raise NetworkError(self.network, e)
|
||||||
|
|
||||||
|
@ -1497,7 +1502,9 @@ class _Opus(_Taggable):
|
||||||
self.artist = Artist(artist, self.network)
|
self.artist = Artist(artist, self.network)
|
||||||
|
|
||||||
self.title = title
|
self.title = title
|
||||||
self.username = username if username else network.username # Default to current user
|
self.username = (
|
||||||
|
username if username else network.username
|
||||||
|
) # Default to current user
|
||||||
self.info = info
|
self.info = info
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
|
|
Loading…
Reference in a new issue