Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Commit

Permalink
fixed some minor issues with ace_api backwards compat stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
unixfreak0037 committed Jan 21, 2019
1 parent 2766b81 commit b7841d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ace_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#
# python3 wrapper for ACE API calls

import sys

try:
import requests
except ImportError:
Expand Down Expand Up @@ -33,7 +35,6 @@
import pickle
import shutil
import socket
import sys
import tarfile
import tempfile
import traceback
Expand Down Expand Up @@ -450,6 +451,9 @@ def cloudphish_clear_alert(url=None, sha256=None, *args, **kwargs):
# supporting backwards comptability for the old ace_client_lib.client library
#

class AlertSubmitException(Exception):
pass

class Alert(object):
def __init__(self, *args, **kwargs):
# these just get passed to ace_api.submit function
Expand Down
2 changes: 1 addition & 1 deletion ace_client_lib/client/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from ace_api import Alert
from ace_api import *

0 comments on commit b7841d4

Please sign in to comment.