Low

Showing all detectors for the Python language with low severity.

Time zone aware datetimes

Using naive datetime objects might cause time zone related issues.

Use of a deprecated method

This code uses deprecated methods, which suggests that it has not been recently reviewed or maintained.

Inefficient polling of AWS resource

Custom polling can be inefficient and prone to error. Consider using AWS waiters instead.

Incorrect use of Process.terminate API

The Process.terminate API might cause data corruption of shared resources.

Catch and rethrow exception

Catching and re-throwing an exception without further actions is redundant and wasteful.

Mutable objects as default arguments of functions

Default values in Python are created exactly once, when the function is defined. If that object is changed, subsequent calls to the function will refer to the changed object, leading to confusion.

Incorrect binding of SNS publish operations

Incorrect binding of SNS publish operations with the subscribe or create_topic operations might lead to latency issues.

AWS client not reused in a Lambda function

Recreating AWS clients in each Lambda function invocation is expensive.

Complex code hard to maintain

Complex code can be difficult to read and hard to maintain.

Dangerous global variables

Global variables can be dangerous and cause bugs because they can be simultaneously accessed from multiple sections of a program.

Risky use of dict get method

Using the get method from the dict class without default values can cause runtime exceptions.

Multiple values in return statement is prone to error

Methods that return multiple values can be difficult to read and prone to error.

Use of an inefficient or incorrect API

Incorrect use of API leads to ambiguity and inconsistency

Multidimensional list initialization using replication is error prone

list replication using replication operator creates references to the existing objects, not copies, which could introduce bugs.

Missing S3 bucket owner condition

Not setting the S3 bucket owner condition might introduce a risk of accidentally using a wrong bucket.

Direct dict object modification

Directly modifying the __dict__ object might cause undesirable behavior due to symbol table modification.