Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZeroDivisionError When Loading 0 Campaigns #425

Closed
zeroSteiner opened this issue Jan 29, 2020 · 8 comments
Closed

ZeroDivisionError When Loading 0 Campaigns #425

zeroSteiner opened this issue Jan 29, 2020 · 8 comments
Assignees
Labels
bug Appears to be a technical project-related issue client Relating to the client component

Comments

@zeroSteiner
Copy link
Collaborator

I have reset password and it has been updated on my server_config.yml file, still trying to connect localhost:22 port 80 and using ssh credential takes me to campaign tab with error message below. and link to screenshot https://imgur.com/a/zRRyqeE

Error Type: builtins.ZeroDivisionError
Error Details: ZeroDivisionError('division by zero',)
Error UID: 8b8093a6-f05e-41f7-bddf-5402879df86b
RPC Error: N/A (Not an RPC error)
King Phisher Version: 1.16.0-beta (rev: 51185b4)
Platform Version: Linux: Ubuntu 18.04 bionic
Python Version: 3.6.9
Gtk Version: 3.22.30
Timezone: America/Los_Angeles

Thread Information:

=> MainThread (alive=True daemon=False)
RPCAsyncWorker (alive=True daemon=False)
ServerEventsDispatcher (alive=True daemon=True)

Stack Trace:

Traceback (most recent call last):
File "/opt/king-phisher/king_phisher/client/gui_utilities.py", line 176, in wrapper
function(*args, **kwargs)
File "/opt/king-phisher/king_phisher/client/dialogs/campaign_selection.py", line 249, in __async_rpc_cb_load_campaigns
progress = len(self._tv_model) / campaigns['total']
ZeroDivisionError: division by zero

Originally posted by @gviva17 in #423 (comment)

@zeroSteiner zeroSteiner added bug Appears to be a technical project-related issue client Relating to the client component labels Jan 29, 2020
@zeroSteiner zeroSteiner self-assigned this Jan 29, 2020
@zeroSteiner
Copy link
Collaborator Author

Originally reported at the end of #423, the issue looks to be pretty straight forward. There's a ZeroDivisionError when the progress is rendered for loading campaigns.

@gviva17
Copy link

gviva17 commented Jan 29, 2020

Thanks for the reply, How do i know when bug is be fixed?

@zeroSteiner
Copy link
Collaborator Author

You follow this ticket. Now that you've commented on it you're "participating" and should get notices unless you unsubscribe. I'll comment on it when it's resolved and I close it.

@gviva17
Copy link

gviva17 commented Jan 29, 2020

ok thanks.

@zeroSteiner
Copy link
Collaborator Author

Fixed in commit d8b1105. The bug was pretty easy to track down and fix by checking if there are any campaigns before calculating progress.

@gviva17
Copy link

gviva17 commented Jan 29, 2020

thanks, so is there something are suppose to do on my end like up king-phisher?

@zeroSteiner
Copy link
Collaborator Author

Yeah, update King Phisher. There's a page in the wiki that explains how to do it.

@gviva17
Copy link

gviva17 commented Jan 30, 2020

thanks alot, solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Appears to be a technical project-related issue client Relating to the client component
Projects
None yet
Development

No branches or pull requests

2 participants