Python 3 upgrade finished

This commit is contained in:
Fergal Moran
2015-08-20 11:18:53 +01:00
parent 139e23d4c0
commit dfa82d4e76
132 changed files with 6399 additions and 6575 deletions

View File

@@ -74,10 +74,10 @@ class Notification(BaseModel):
}
result = mandrill_client.messages.send(message=message, async=False)
print result
print(result)
except mandrill.Error, e: # Mandrill errors are thrown as exceptions
print 'A mandrill error occurred: %s - %s' % (e.__class__, e)
except mandrill.Error as e: # Mandrill errors are thrown as exceptions
print('A mandrill error occurred: %s - %s' % (e.__class__, e))
def get_from_user(self):
return UserProfile.get_user(self.from_user)