From b296c10541def766bd935465a0231c7b1750fe7b Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 4 Oct 2022 22:40:03 +0200 Subject: [PATCH] Added check for app_data --- Examples/Announce.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 #####################################