specify exception

This commit is contained in:
Jack 2016-07-29 23:05:01 -04:00
parent cf8592ba12
commit 1ffcd67c9d

View file

@ -1178,7 +1178,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
def _resolve_name(self, name, force_refresh=False): def _resolve_name(self, name, force_refresh=False):
try: try:
verify_name_characters(name) verify_name_characters(name)
except: except AssertionError:
log.error("Bad name") log.error("Bad name")
return defer.fail(InvalidNameError("Bad name")) return defer.fail(InvalidNameError("Bad name"))