Skip to content

Commit

Permalink
Update analysis message and drop python3
Browse files Browse the repository at this point in the history
Signed-off-by: Rodolfo Olivieri <[email protected]>
  • Loading branch information
r0x0d committed Sep 12, 2023
1 parent 2a53fcb commit 2eac067
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions scripts/preconversion_assessment_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@
import subprocess
import copy

try:
# Python3
from urllib.request import urlopen
except ImportError:
# Python 2
from urllib2 import urlopen

from urllib2 import urlopen

STATUS_CODE = {
"SUCCESS": 0,
Expand Down Expand Up @@ -402,6 +396,7 @@ def main():
# Insights.
output.message = generate_report_message(highest_level)
output.entries = transform_raw_data(data)
print("Pre-conversion assessment script finish successfully!")
except ProcessError as exception:
output = OutputCollector(status="ERROR", report=exception.message)
except Exception as exception:
Expand All @@ -410,7 +405,6 @@ def main():
print("Cleaning up modifications to the system.")
cleanup(required_files)

print("Analysis was successfully executed.")
print("### JSON START ###")
print(json.dumps(output.to_dict(), indent=4))
print("### JSON END ###")
Expand Down

0 comments on commit 2eac067

Please sign in to comment.