Skip to content

Commit

Permalink
Update plugins.py
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven committed Feb 7, 2025
1 parent e812fe1 commit bf15a9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cuckoo/core/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def process(self, signature):
log.debug('Analysis matched signature "%s"', signature.name)
# Return information on the matched signature.
return signature.as_result()
except (KeyError, TypeError) as e:
except (KeyError, TypeError, AttributeError) as e:
log.debug('Failed to run signature "%s": %s', signature.name, e)
except NotImplementedError:
return None
Expand Down Expand Up @@ -614,7 +614,7 @@ def run(self, test_signature: str = False):
stats[sig.name] += timediff
except NotImplementedError:
continue
except (KeyError, TypeError) as e:
except (KeyError, TypeError, AttributeError) as e:
log.debug('Failed to run signature "%s": %s', sig.name, e)
except Exception as e:
log.exception('Failed run on_complete() method for signature "%s": %s', sig.name, e)
Expand Down

0 comments on commit bf15a9d

Please sign in to comment.