Skip to content

Commit

Permalink
style: another round of conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
sijis committed Oct 30, 2023
1 parent 34be171 commit 6b0e6cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions errbot/botplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ def append_args(self, args, kwargs):
update_wrapper(self.definition, args, kwargs)
else:
log.warning(
"Attempting to append arguments to {} isn't supported.".format(
self.definition
)
f"Attempting to append arguments to {self.definition} isn't supported."
)


Expand Down
4 changes: 1 addition & 3 deletions errbot/core_plugins/vcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ def _get_version(self):
# noinspection PyBroadException
try:
possible_versions = requests.get(HOME).json()
version = possible_versions.get(
"python{}".format(major_py_version), VERSION
)
version = possible_versions.get(f"python{major_py_version}", VERSION)
self.log.debug("Latest Errbot version is: %s", version)
except (HTTPError, URLError, ConnectionError, JSONDecodeError):
self.log.info("Could not establish connection to retrieve latest version.")
Expand Down

0 comments on commit 6b0e6cd

Please sign in to comment.