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

GenModule instance has no attribute 'print_error' #35

Closed
xinxin999 opened this issue Jul 20, 2020 · 1 comment
Closed

GenModule instance has no attribute 'print_error' #35

xinxin999 opened this issue Jul 20, 2020 · 1 comment

Comments

@xinxin999
Copy link

(generate)>>> run Traceback (most recent call last): File "dkmc.py", line 43, in <module> mod.show_menu() File "C:\Users\lijx\Desktop\DKMC-master\module\module.py", line 21, in show_menu self.do_action() File "C:\Users\lijx\Desktop\DKMC-master\module\module.py", line 42, in do_action self.exec_action(data) File "C:\Users\lijx\Desktop\DKMC-master\module\module.py", line 57, in exec_action self.run_action() File "C:\Users\lijx\Desktop\DKMC-master\module\gen.py", line 30, in run_action data = self.get_file_data() File "C:\Users\lijx\Desktop\DKMC-master\module\gen.py", line 66, in get_file_data self.print_error("%s not found" % self.vars["source"][0]) AttributeError: GenModule instance has no attribute 'print_error'

no matter windows or Linux
both questions
how to solove?
thanks

@Mr-Un1k0d3r
Copy link
Owner

good catch I fixed the issue with the following commit: 3c238f0

the self.print_error was supposed to be self.ui.print_error.

You should now see the error in the UI. In your case the source file was not found.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants