index : reflector32 | |
Archlinux32 fork of reflector | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | Reflector.py | 4 |
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) |