Opened 20 months ago

Closed 20 months ago

Last modified 14 months ago

#27918 closed defect (fixed)

Add types to some new arguments

Reported by: pastly Owned by:
Priority: Medium Milestone: sbws: 1.0.x-final
Component: Core Tor/sbws Version:
Severity: Normal Keywords:
Cc: pastly, juga, teor Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


Because if you don't, they default to strings and that's not good.

$ sbws generate -n 1
[... snip ...]
Traceback (most recent call last):
  File "/home/matt/src/simple-bw-scanner/venv-editable/bin/sbws", line 11, in <module>
    load_entry_point('sbws', 'console_scripts', 'sbws')()
  File "/home/matt/src/simple-bw-scanner/sbws/", line 75, in main
    exit(comm['f'](*comm['a'], **comm['kw']))
  File "/home/matt/src/simple-bw-scanner/sbws/core/", line 99, in main
  File "/home/matt/src/simple-bw-scanner/sbws/lib/", line 474, in from_results
  File "/home/matt/src/simple-bw-scanner/sbws/lib/", line 279, in from_results
  File "/home/matt/src/simple-bw-scanner/sbws/lib/", line 326, in min_num_results
    if len(results) > min_num:
TypeError: unorderable types: int() > str()

-p, -a, and -n all need a type I bet.

Child Tickets

Change History (3)

comment:1 Changed 20 months ago by pastly

Status: newneeds_review

comment:2 Changed 20 months ago by juga

Resolution: fixed
Status: needs_reviewclosed

comment:3 Changed 14 months ago by teor

Milestone: sbws: 1.0.x-final

Moving closed sbws tickets to sbws: 1.0.x-final.

Note: See TracTickets for help on using tickets.