관리-도구
편집 파일: raven.cpython-37.pyc
B ��Y^ � @ s� d Z ddlmZmZ ddlmZ ddlmZ ddlm Z m Z ddlZddlZddl Z ddlZddlZejdkZG dd � d ej�ZG d d� de�ZdS )z� raven.contrib.django.management.commands.raven ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2016 by the Sentry Team, see AUTHORS for more details :license: BSD, see LICENSE for more details. � )�absolute_import�print_function)�BaseCommand)�make_option)� store_json�send_test_messageN)� � r c @ s e Zd Zddd�ZdS )�StoreJsonActionNc C sZ yt �|d �}W n4 tk rF td| j|d f � t�d� Y nX t|| j|� d S )Nr z2Invalid JSON was used for option %s. Received: %sr )�json�loads� ValueError�print�dest�sys�exit�setattr)�self�parser� namespace�values� option_string�value� r �_/opt/alt/python37/lib/python3.7/site-packages/raven/contrib/django/management/commands/raven.py�__call__ s zStoreJsonAction.__call__)N)�__name__� __module__�__qualname__r r r r r r s r c @ sV e Zd ZdZes@ejeddedddd�eddeddd d�f Znd d� Z dd d�Z dS )�Commandz+Commands to interact with the Sentry clientz--data�callback�stringr �data)�actionr �type�nargsr z--tags�tagsc C s6 |j ddd� |j dtddd� |j dtddd� d S ) N�commandr )r% z--datar"