)]}'
{"marconi/queues/storage/errors.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"2b953613447844ae73caba20c3cf1ca7df24bc1f","unresolved":false,"context_lines":[{"line_number":37,"context_line":"class Conflict(ExceptionBase):"},{"line_number":38,"context_line":"    \"\"\"Resource could not be created due to a conflict"},{"line_number":39,"context_line":"    with an existing resource."},{"line_number":40,"context_line":"    \"\"\""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"class MessageConflict(ExceptionBase):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8pL4%3D","line":40,"updated":"2013-12-23 20:03:21.000000000","message":"Hey,\n\nyou need to define msg_format here and all the above exceptions. I\u0027d suggest you to have a base / empty msg_format in ExceptionBase\n\n   class ExceptioBase(Exception):\n      msg_format \u003d \u0027\u0027\n\n      def __init__(....)","commit_id":"34efe8b458d24bd0324b6e0d63b3127d4345faca"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"fc3406f66ddc9c30e8f3644ba90d12c1a9a864b7","unresolved":false,"context_lines":[{"line_number":49,"context_line":"                  u\u0027with another message that is already in \u0027"},{"line_number":50,"context_line":"                  u\u0027queue {queue} for project {project}\u0027)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    def __init__(self, queue, project, message_ids):"},{"line_number":53,"context_line":"        \"\"\"Initializes the error with contextual information."},{"line_number":54,"context_line":"        :param queue: name of the queue to which the message was posted"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F8pBU%3D","line":52,"updated":"2013-12-23 21:29:17.000000000","message":"All this __init__ are not needed anymore. The base class takes **kwargs","commit_id":"f43c3197e28f95ccfceb295370f5256b69b5e98b"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"fc3406f66ddc9c30e8f3644ba90d12c1a9a864b7","unresolved":false,"context_lines":[{"line_number":66,"context_line":"            return self._succeeded_ids"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"class QueueDoesNotExist(ExceptionBase):"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    msg_format \u003d u\u0027Queue {name} does not exist for project {project}\u0027"},{"line_number":72,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F8o8I%3D","line":69,"updated":"2013-12-23 21:29:17.000000000","message":"Erm, it should inherit from DoesNotExist.\n\nDon\u0027t change the exception bases unless they inherit from Exception. :)","commit_id":"f43c3197e28f95ccfceb295370f5256b69b5e98b"}]}
