diff --git a/uptick/wallet.py b/uptick/wallet.py
index <HASH>..<HASH> 100644
--- a/uptick/wallet.py
+++ b/uptick/wallet.py
@@ -64,14 +64,15 @@ def addkey(ctx, key):
     installedKeys = ctx.bitshares.wallet.getPublicKeys()
     if len(installedKeys) == 1:
         name = ctx.bitshares.wallet.getAccountFromPublicKey(installedKeys[0])
-        account = Account(name, bitshares_instance=ctx.bitshares)
-        click.echo("=" * 30)
-        click.echo("Setting new default user: %s" % account["name"])
-        click.echo()
-        click.echo("You can change these settings with:")
-        click.echo("    uptick set default_account <account>")
-        click.echo("=" * 30)
-        config["default_account"] = account["name"]
+        if name:  # only if a name to the key was found
+            account = Account(name, bitshares_instance=ctx.bitshares)
+            click.echo("=" * 30)
+            click.echo("Setting new default user: %s" % account["name"])
+            click.echo()
+            click.echo("You can change these settings with:")
+            click.echo("    uptick set default_account <account>")
+            click.echo("=" * 30)
+            config["default_account"] = account["name"]
 
 
 @main.command()
[addkey] do not set a default_account if no name can be found to the key