From 5dc1f3db0d6912b96070599af0beba0e06b7e412 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Sun, 20 Oct 2019 23:47:01 +0100
Subject: [PATCH] Check for none

---
 epicyon.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/epicyon.py b/epicyon.py
index 3e98b6a7..638756a6 100644
--- a/epicyon.py
+++ b/epicyon.py
@@ -906,7 +906,9 @@ if args.actor:
         personUrl = getUserUrl(wfRequest)
     if nickname==domain:
         personUrl=personUrl.replace('/users/','/actor/').replace('/channel/','/actor/').replace('/profile/','/actor/')
-    #print('personUrl: '+personUrl)
+    if not personUrl:
+        print('Failed to get actor url')
+        sys.exit()        
     if '/channel/' in personUrl:
         asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'}
     personJson = getJson(session,personUrl,asHeader,None,__version__,httpPrefix,None)