Traceback (most recent call last):


 "/usr/lib/python2.6/site-packages/salt/cloud/cli.py", line 284, in run

self.config.get('names')


 "/usr/lib/python2.6/site-packages/salt/cloud/__init__.py", line 1458, in run_profile

ret[name] = self.create(vm_)


 "/usr/lib/python2.6/site-packages/salt/cloud/__init__.py", line 1288, in create

output = self.clouds[func](vm_)


 "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__

self.gen.throw(type, value, traceback)


 "/usr/lib/python2.6/site-packages/salt/utils/context.py", line 48, in func_globals_inject

yield


 "/usr/lib/python2.6/site-packages/salt/cloud/__init__.py", line 1288, in create

output = self.clouds[func](vm_)


 "/usr/lib/python2.6/site-packages/salt/cloud/clouds/vmware.py", line 2511, in create

specs = _manage_devices(devices, object_ref)


 "/usr/lib/python2.6/site-packages/salt/cloud/clouds/vmware.py", line 680, in _manage_devices

network_spec = _edit_existing_network_adapter(device, network_name, adapter_type, switch_type)


 "/usr/lib/python2.6/site-packages/salt/cloud/clouds/vmware.py", line 346, in _edit_existing_network_adapter

portgroupKey=network_ref.key,
AttributeError: 'NoneType' object has no attribute 'key'`

Traceback (most recent call last):


 "/home/pi/Mycodo/env/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app

response = self.full_dispatch_request()


 "/home/pi/Mycodo/env/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/home/pi/Mycodo/env/lib/python3.7/site-packages/flask_restx/api.py", line 639, in error_router

return original_handler(e)


 "/home/pi/Mycodo/env/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/home/pi/Mycodo/env/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise

raise value


 "/home/pi/Mycodo/env/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request

rv = self.dispatch_request()


 "/home/pi/Mycodo/env/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/home/pi/Mycodo/env/lib/python3.7/site-packages/flask_login/utils.py", line 272, in decorated_view

return func(*args, **kwargs)


 "/home/pi/Mycodo/mycodo/mycodo_flask/routes_page.py", line 223, in page_camera

camera_record('photo', mod_camera.unique_id)


 "/home/pi/Mycodo/mycodo/devices/camera.py", line 189, in camera_record

img_edited = img_orig.copy()
AttributeError: 'NoneType' object has no attribute 'copy'
