Catch all Exceptions in the scanning part
authorft
Tue, 03 Dec 2013 14:53:22 +0100
changeset 4114537186d9e
parent 3 5c45c43de56e
child 5 5b7c05fc9a5e
Catch all Exceptions in the scanning part
src/OsecFS.py
     1.1 --- a/src/OsecFS.py	Tue Dec 03 11:41:25 2013 +0100
     1.2 +++ b/src/OsecFS.py	Tue Dec 03 14:53:22 2013 +0100
     1.3 @@ -132,6 +132,11 @@
     1.4          #    return 2
     1.5          LOG.error ("Connection to scan server could not be established.")
     1.6          return False
     1.7 +    except:
     1.8 +        LOG.error ("Something went wrong at scanning.")
     1.9 +        LOG.error ("Exception: %s" %(sys.exc_info()[0],))
    1.10 +        return False
    1.11 +
    1.12  
    1.13      if r.status_code == STATUS_CODE_OK:
    1.14          infected = False