GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

fix: v3bwfile: Avoid statistics without data

If mean or median argument is empty, they throw an exception.
This can happen when the scanner has stopped and the result is
stored as successful without any downloads.

Closes: #40012
7 jobs for maint-1.1_bug40012_mean in 36 minutes and 56 seconds (queued for 43 minutes and 15 seconds)
latest
Status Job ID Name Coverage
  Test
passed #1726
python36tor035

00:10:59

passed #1727
python36tor041

00:10:48

passed #1728
python36tor042

00:10:56

passed #1729
python36torstable

00:13:16

failed #1730
python37

00:14:54

passed #1731
python38

00:11:05

passed #1732
python39

00:11:10

 
Name Stage Failure
failed
python37 Test
sbws/util/timestamps.py           49      6    88%
sbws/util/userquery.py 20 0 100%
--------------------------------------------------
TOTAL 3479 1115 68%
stats run-test: commands[1] | coverage html
___________________________________ summary ____________________________________
stats: commands succeeded
congratulations :)
ERROR: Job failed: exit code 1