mirror of
https://github.com/fergalmoran/dss.api.git
synced 2025-12-26 11:17:59 +00:00
Python 3 upgrade finished
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user