~saurabhanandiit/gtg/exportFixed

« back to all changes in this revision

Viewing changes to GTG/backends/tweepy/error.py

Merge of my work on liblarch newbase and all the backends ported to liblarch
(which mainly means porting the datastore).
One failing test, will check it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Tweepy
 
2
# Copyright 2009-2010 Joshua Roesslein
 
3
# See LICENSE for details.
 
4
 
 
5
class TweepError(Exception):
 
6
    """Tweepy exception"""
 
7
 
 
8
    def __init__(self, reason, response=None):
 
9
        self.reason = str(reason)
 
10
        self.response = response
 
11
 
 
12
    def __str__(self):
 
13
        return self.reason
 
14