We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2046134 commit 1d08b38Copy full SHA for 1d08b38
1 file changed
threema-gateway
@@ -7,6 +7,7 @@ import binascii
7
import functools
8
import asyncio
9
10
+import aiohttp
11
import click
12
13
from threema.gateway import __version__ as _version
@@ -399,6 +400,14 @@ def credits(ctx, **arguments):
399
400
if __name__ == '__main__':
401
try:
402
cli()
403
+ except aiohttp.FingerprintMismatch as exc:
404
+ error = 'Fingerprints did not match!'
405
except Exception as exc:
406
+ error = str(exc)
407
+ else:
408
+ error = None
409
+
410
+ # Print error (if any)
411
+ if error is not None:
412
click.echo('An error occurred:', err=True)
- click.echo(exc, err=True)
413
+ click.echo(error, err=True)
0 commit comments