diff --git a/Examples/Announce.py b/Examples/Announce.py index 5a48080..bd11ac5 100644 --- a/Examples/Announce.py +++ b/Examples/Announce.py @@ -130,10 +130,11 @@ class ExampleAnnounceHandler: RNS.prettyhexrep(destination_hash) ) - RNS.log( - "The announce contained the following app data: "+ - app_data.decode("utf-8") - ) + if app_data: + RNS.log( + "The announce contained the following app data: "+ + app_data.decode("utf-8") + ) ########################################################## #### Program Startup #####################################