Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

TypeError: 'NoneType' object is not iterable #912

Closed
imanandshah opened this issue Jan 24, 2018 · 2 comments
Closed

TypeError: 'NoneType' object is not iterable #912

imanandshah opened this issue Jan 24, 2018 · 2 comments

Comments

@imanandshah
Copy link

imanandshah commented Jan 24, 2018

I am a newbie here and I could see issues with security group and policies but nothing apart from it. However i see below errors in the log file. Can some one help?

2018-01-24 04:25:56,921 INFO: Running job "run_change_reporter (trigger: interval[1:00:00], next run at: 2018-01-24 04:25:56 UTC)" (scheduled at 2018-01-24 04:25:56.913725+00:00) [in /usr/local/src/security_monkey/venv/lib/python2.7/site-packages/APScheduler-3.5.0-py2.7.egg/apscheduler/executors/base.py:123]
2018-01-24 05:04:36,513 ERROR: Job "run_change_reporter (trigger: interval[1:00:00], next run at: 2018-01-24 05:25:56 UTC)" raised an exception [in /usr/local/src/security_monkey/venv/lib/python2.7/site-packages/APScheduler-3.5.0-py2.7.egg/apscheduler/executors/base.py:131]
Traceback (most recent call last):
  File "/usr/local/src/security_monkey/venv/lib/python2.7/site-packages/APScheduler-3.5.0-py2.7.egg/apscheduler/executors/base.py", line 125, in run_job
    retval = job.func(*job.args, **job.kwargs)
  File "/usr/local/src/security_monkey/security_monkey/scheduler.py", line 30, in run_change_reporter
    reporter.run(account, interval)
  File "/usr/local/src/security_monkey/security_monkey/reporter.py", line 61, in run
    monitor.watcher.save()
  File "/usr/local/src/security_monkey/security_monkey/watcher.py", line 486, in save
    item.save(self.datastore)
  File "/usr/local/src/security_monkey/security_monkey/watcher.py", line 635, in save
    ephemeral=ephemeral)
  File "/usr/local/src/security_monkey/security_monkey/datastore.py", line 635, in store
    item.latest_revision_complete_hash = self.hash_config(config)
  File "/usr/local/src/security_monkey/security_monkey/datastore.py", line 550, in hash_config
    item = sub_dict(config)
  File "/usr/local/src/security_monkey/security_monkey/common/utils.py", line 54, in sub_dict
    for k in d:
TypeError: 'NoneType' object is not iterable
@mikegrima
Copy link
Contributor

@imanandshah This may be fixed in #911 as we are completely removing the AP Scheduler altogether.

@mikegrima
Copy link
Contributor

Closing as AP Scheduler was removed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants