Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/Reflector.py
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-06-01 20:38:11 +0200
committerErich Eckner <git@eckner.net>2021-06-01 20:38:11 +0200
commit98254673742609393d2d023fe464d79342fef2dd (patch)
tree4cbd3a34ef35e63ea094298254de6df9a06d3313 /Reflector.py
parentb751ce6331f66c0749addd3030eb8bab1c5c9d31 (diff)
reflector-2021.4.tar.xz
Diffstat (limited to 'Reflector.py')
-rw-r--r--Reflector.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Reflector.py b/Reflector.py
index 6dc92b3..532484f 100644
--- a/Reflector.py
+++ b/Reflector.py
@@ -1126,14 +1126,14 @@ def main(args=None, configure_logging=False): # pylint: disable=too-many-branch
if mirrorlist is None:
sys.exit('error: no mirrors found')
except MirrorStatusError as err:
- sys.exit('error: {}\n'.format(err.msg))
+ sys.exit(f'error: {err.msg}')
if options.save:
try:
with open(options.save, 'w') as handle:
handle.write(mirrorlist)
except IOError as err:
- sys.exit('error: {}\n'.format(err.strerror))
+ sys.exit(f'error: {err.strerror}')
else:
print(mirrorlist)