WKnak / fail2ban-block-ip-range

A python script to block attacks from a network range address, from CIDR /23 up to /31
24 stars 15 forks source link

Traceback : TypeError: can only concatenate str #6

Closed octavsly closed 4 months ago

octavsly commented 8 months ago

Maybe the following error report can be used...

Traceback (most recent call last):
  File "/usr/local/bin/fail2ban-block-ip-range.py", line 116, in <module>
    print("jail " + jail + " unsuccessful try to ban aggregated IP network: " + ip + " (result: " + result + ")")
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
TypeError: can only concatenate str (not "CompletedProcess") to str
pbiering commented 8 months ago

reproduced, will check for the issue

pbiering commented 8 months ago

issue was introduced by https://github.com/WKnak/fail2ban-block-ip-range/pull/3/files

WKnak commented 4 months ago

Due to some failed PR merges from my side, it is now fixed my PR #11 from @pbiering. Thanks!