Handle without port

main
Bob Mottram 2020-06-19 22:05:09 +01:00
parent d5b7dd97af
commit dae869b264
1 changed files with 7 additions and 3 deletions

View File

@ -5960,9 +5960,13 @@ def htmlProfileAfterSearch(recentPostsCache: {}, maxRecentPosts: int,
if searchPortStr.isdigit():
searchPort = int(searchPortStr)
searchDomain = searchDomain.split(':')[0]
if searchPort:
print('DEBUG: Search for handle ' +
str(searchNickname) + '@' + str(searchDomain) + ':' +
str(searchPort))
else:
print('DEBUG: Search for handle ' +
str(searchNickname) + '@' + str(searchDomain))
if not searchNickname:
print('DEBUG: No nickname found in ' + profileHandle)
return None