pyalienvaultcli 1.1__tar.gz → 1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyalienvaultcli
3
- Version: 1.1
3
+ Version: 1.3
4
4
  Summary: A simple Python script to interact with Alienvault OTX APIs from CLI.
5
5
  Author-email: tdebize@mail.com
6
6
  License-Expression: LGPL-3.0-or-later
@@ -10,7 +10,7 @@ from OTXv2 import OTXv2
10
10
  from OTXv2 import IndicatorTypes
11
11
 
12
12
  # Globals
13
- VERSION = '1.1'
13
+ VERSION = '1.3'
14
14
  SECRET_ALIENVAULT_API_KEY = 'SECRET_ALIENVAULT_API_KEY'
15
15
 
16
16
  # Options definition
@@ -64,8 +64,12 @@ def main():
64
64
 
65
65
  with open(options.input_file, mode='r', encoding='utf-8') as fd_input:
66
66
  new_indicators = make_indicators_from_file(fd_input)
67
- response = otx.add_pulse_indicators(options.pulse_id, new_indicators)
68
- print(str(response))
67
+ try:
68
+ response = otx.add_pulse_indicators(options.pulse_id, new_indicators)
69
+ print(str(response))
70
+
71
+ except Exception as e:
72
+ print('[!] Exception: "%s"' % e)
69
73
 
70
74
  return
71
75
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyalienvaultcli
3
- Version: 1.1
3
+ Version: 1.3
4
4
  Summary: A simple Python script to interact with Alienvault OTX APIs from CLI.
5
5
  Author-email: tdebize@mail.com
6
6
  License-Expression: LGPL-3.0-or-later
File without changes
File without changes