Skip to content

Commit

Permalink
Fixing use command issue (threat9#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucyoa authored Sep 26, 2018
1 parent de67d09 commit f32e08d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routersploit/core/exploit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def import_exploit(path):
return getattr(module, "Encoder")
elif hasattr(module, "Exploit"):
return getattr(module, "Exploit")
else:
raise ImportError("No module named '{}'".format(path))

except (ImportError, AttributeError, KeyError) as err:
raise RoutersploitException(
Expand Down

0 comments on commit f32e08d

Please sign in to comment.