Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated error.message syntax #7819

Merged
merged 2 commits into from
Mar 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#### Improvements

#### Fixes
- Replaced deprecated error.message syntax ([#7819](https://github.com/pymedusa/Medusa/pull/7819))

-----

Expand Down
2 changes: 1 addition & 1 deletion lib/rtorrent/lib/xmlrpc/requests_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def request(self, host, handler, request_body, verbose=0):
response.raise_for_status()
except RequestException as error:
raise xmlrpc_client.ProtocolError(url,
error.message,
response.status_code,
traceback.format_exc(),
response.headers)

Expand Down
2 changes: 1 addition & 1 deletion medusa/tv/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def location(self, value):
app.show_queue_scheduler.action.refreshShow(self)
except CantRefreshShowException as error:
log.warning("Unable to refresh show '{show}'. Error: {error}",
{'show': self.name, 'error': error.message})
{'show': self.name, 'error': error})

@property
def indexer_name(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/legacy/ssl_sni_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _connectivity_test():
if 'certificate verify failed' in text_type(error):
print('Cannot verify certificate for %s' % _provider.name)
else:
print('SSLError on %s: %s' % (_provider.name, ex(error.message)))
print('SSLError on %s: %s' % (_provider.name, ex(error)))
raise
except requests.exceptions.Timeout:
print('Provider timed out')
Expand Down