AttributeError: 'NoneType' object has no attribute 'publish' when sending SNS message
stardothosting opened this issue ยท 2 comments
stardothosting commented
I got the following trackback error when the script tries to send an SNS message ๐
Traceback (most recent call last):
File "./makesnapshots.py", line 181, in
sns.publish(mytopic_arn,message,"Finished AWS snapshotting")
AttributeError: 'NoneType' object has no attribute 'publish'
This was resolved by putting the following line right before the script sends messages :
sns = boto.connect_sns()
stardothosting commented
my mistake! wrong region was defined in the config :)
Omar-Khawaja commented
I came across this same error, but I'm not able to resolve it. I made sure my region is correct. I'm using "us-east-2" as my region. Did you have to format the region a special way?