From 1ffcd67c9d2ba85b436d9ee5b5a0e1baa1a4ed29 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 29 Jul 2016 23:05:01 -0400 Subject: [PATCH] specify exception --- lbrynet/lbrynet_daemon/LBRYDaemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/lbrynet_daemon/LBRYDaemon.py b/lbrynet/lbrynet_daemon/LBRYDaemon.py index cf0188a1f..ea9124d57 100644 --- a/lbrynet/lbrynet_daemon/LBRYDaemon.py +++ b/lbrynet/lbrynet_daemon/LBRYDaemon.py @@ -1178,7 +1178,7 @@ class LBRYDaemon(jsonrpc.JSONRPC): def _resolve_name(self, name, force_refresh=False): try: verify_name_characters(name) - except: + except AssertionError: log.error("Bad name") return defer.fail(InvalidNameError("Bad name"))