Skip to content

Commit

Permalink
3.5.2
Browse files Browse the repository at this point in the history
- beautify
  • Loading branch information
SirDank committed Nov 2, 2023
1 parent 162fd2c commit 9dba8d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions dankware/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def exporter(key, registry_root, subkey_path, key_data, recursive) -> None:
open(export_path, 'w', encoding='utf-16').write('Windows Registry Editor Version 5.00\n\n' + '\n'.join(key_data))

if verbose:
print(clr(f"\n > Successfully exported registry keys to \"{os.path.join(os.getcwd(), 'export.reg') if export_path == 'export.reg' else export_path}\""))
print(clr(f"\n - Successfully exported registry keys to \"{os.path.join(os.getcwd(), 'export.reg') if export_path == 'export.reg' else export_path}\""))

except: sys.exit(clr(err(sys.exc_info()),2))

Expand Down Expand Up @@ -846,9 +846,9 @@ def err(exc_info, mode = "default") -> str:
elif filename.endswith("$py.class"): filename = filename[:-9] + ".py"
stack_trace.append(" - File: {} | Line: {} | Function: {}{}".format(filename, trace[1], trace[2] if trace[2] != '<module>' else 'top-level', ' | ' + trace[3] if trace[3] else ''))

report = " > Error Type: {}".format(ex_type.__name__)
if ex_value: report += "\n > Error Message: \n - {}".format(ex_value)
report += "\n > Error Stack Trace: \n{}".format('\n'.join(stack_trace))
report = " - Error Type: {}".format(ex_type.__name__)
if ex_value: report += "\n - Error Message: \n - {}".format(ex_value)
report += "\n - Error Stack Trace: \n{}".format('\n'.join(stack_trace))

elif mode == "mini":

Expand All @@ -859,7 +859,7 @@ def err(exc_info, mode = "default") -> str:
elif filename.endswith("$py.class"): filename = filename[:-9] + ".py"
stack_trace.append(" - {} | {} | {}{}".format(filename, trace[1], trace[2] if trace[2] != '<module>' else 'top-level', ' | ' + trace[3] if trace[3] else ''))

report = " > {}".format(ex_type.__name__)
report = " - {}".format(ex_type.__name__)
if ex_value: report += " | {}".format(ex_value)
report += "\n{}".format('\n'.join(stack_trace))

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

license = "MIT",
name = "dankware",
version = "3.5.1",
version = "3.5.2",
author = "SirDank",

author_email = "SirDankenstein@protonmail.com",
Expand Down

0 comments on commit 9dba8d7

Please sign in to comment.