Traceback (most recent call last):


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app

response = self.full_dispatch_request()


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise

raise value


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request

rv = self.dispatch_request()


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request

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


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/flask_appbuilder/security/decorators.py", line 109, in wraps

return f(self, *args, **kwargs)


 "/venvMyAPP/MyAPP/app/views.py", line 34547, in edit

widgets = self._edit_MyAPP(pk)


 "/venvMyAPP/MyAPP/app/views.py", line 34581, in _edit_MyAPP

form = self.edit_form.refresh(request.form)


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/flask_appbuilder/forms.py", line 329, in refresh

form = self(obj=obj)


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/wtforms/form.py", line 208, in __call__

return type.__call__(cls, *args, **kwargs)


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/flask_wtf/form.py", line 87, in __init__

super(FlaskForm, self).__init__(formdata=formdata, **kwargs)


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/wtforms/form.py", line 274, in __init__

self.process(formdata, obj, data=data, **kwargs)


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/wtforms/form.py", line 131, in process

field.process(formdata)


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/wtforms/fields/core.py", line 310, in process

self.process_formdata(self.raw_data)


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/flask_appbuilder/fields.py", line 76, in process_formdata

self.data = self.datamodel.get(valuelist[0])


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 1018, in get

return self._get_impl(ident, loading.load_on_pk_identity)


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 1135, in _get_impl

return db_load_fn(self, primary_key_identity)


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 286, in load_on_pk_identity

return q.one()


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3463, in one

ret = self.one_or_none()


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3432, in one_or_none

ret = list(self)


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3508, in __iter__

return self._execute_and_instances(context)


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3533, in _execute_and_instances

result = conn.execute(querycontext.statement, self._params)


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1011, in execute

return meth(self, multiparams, params)


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/sqlalchemy/sql/elements.py", line 298, in _execute_on_connection

return connection._execute_clauseelement(self, multiparams, params)


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1124, in _execute_clauseelement

ret = self._execute_context(


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1206, in _execute_context

self._handle_dbapi_exception(


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1510, in _handle_dbapi_exception

util.raise_(


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_

raise exception


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1202, in _execute_context

conn = self._revalidate_connection()


 "/venvMyAPP/MyAPP/kvenv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 469, in _revalidate_connection

raise exc.InvalidRequestError(
sqlalchemy.exc.StatementError: (sqlalchemy.exc.InvalidRequestError) Can't reconnect until invalid transaction is rolled back

Traceback (most recent call last):

 "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()

 "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)

 "./maltrieve.py", line 45, in get_malware
mal = get_URL(url)

 "/home/gnpendergast/maltrieve/malutil.py", line 7, in get_URL
response = urllib2.urlopen(url.encode("utf8"))

 "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)

 "/usr/lib/python2.7/urllib2.py", line 393, in open
protocol = req.get_type()

 "/usr/lib/python2.7/urllib2.py", line 255, in get_type
raise ValueError, "unknown url type: %s" % self.__originalValueError: unknown url type: