Skip to content

Commit

Permalink
Simplify error handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilk committed Nov 29, 2021
1 parent aea8fa6 commit c039001
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions aerozol
Expand Up @@ -79,8 +79,7 @@ def format_size(n):
if n < 1024:
return '{s}{0:.1f} {p}B'.format(n, s=sign, p=prefix)
n /= 1024
else:
raise NotImplementedError
raise NotImplementedError

def print_client_info(client_info, *, options):
server_now = client_info.get(datetime)
Expand Down Expand Up @@ -220,8 +219,7 @@ def main():
except urllib.error.URLError as exc:
if isinstance(exc.args[0], ssl.SSLError):
return
else:
raise
raise
if options.password_file is not None:
with open(options.password_file, 'rt') as file:
password = file.readline()
Expand Down

0 comments on commit c039001

Please sign in to comment.