mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +00:00
Fix import error messages and a tab
This commit is contained in:
parent
f14887f5c8
commit
ec2d1fea94
1 changed files with 11 additions and 6 deletions
|
@ -58,10 +58,15 @@ import json
|
|||
import os
|
||||
import sys
|
||||
|
||||
import GeoIP
|
||||
import stem
|
||||
import stem.control
|
||||
import stem.connection
|
||||
try:
|
||||
import GeoIP
|
||||
import stem
|
||||
import stem.control
|
||||
import stem.connection
|
||||
except ImportError:
|
||||
# missing dependencies are reported via "autoconf"
|
||||
# thus failure is acceptable here
|
||||
pass
|
||||
|
||||
default_torcachefile = 'munin_tor_country_stats.json'
|
||||
default_torconnectmethod = 'port'
|
||||
|
@ -141,7 +146,7 @@ class TorPlugin(object):
|
|||
import stem
|
||||
|
||||
except ImportError as e:
|
||||
print('no ({})'.format(e))
|
||||
print('no (failed to import the required python module "stem": {})'.format(e))
|
||||
|
||||
try:
|
||||
import GeoIP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue