]> git.ipfire.org Git - location/libloc.git/commit
location-importer.in: Fix dangling variable
authorPeter Müller <peter.mueller@ipfire.org>
Sun, 14 Aug 2022 16:02:55 +0000 (16:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 14 Aug 2022 16:04:02 +0000 (16:04 +0000)
commit00beb796d3c684d3e828c74b8d0c9fcace9bef4f
tree8461557e4dc19beeecdce84bd82bb407be30dac5
parent1f15d936342b9662e659534d23399c22b4caffa3
location-importer.in: Fix dangling variable

This fixes:

Traceback (most recent call last):
  File "/usr/bin/location-importer", line 1607, in <module>
    main()
  File "/usr/bin/location-importer", line 1605, in main
    c.run()
  File "/usr/bin/location-importer", line 140, in run
    ret = args.func(args)
  File "/usr/bin/location-importer", line 1234, in handle_update_overrides
    self._update_overrides_for_spamhaus_drop()
  File "/usr/bin/location-importer", line 1504, in _update_overrides_for_spamhaus_drop
    for sline in t.readlines():
NameError: name 't' is not defined

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/location-importer.in