---
title: "Discussion on \"Week 5 - UnboundLocalError: local variable 'ddb' referenced before assignment\" | Hashnode"
description: "Discussion on \"Week 5 - UnboundLocalError: local variable 'ddb' referenced before assignment\". Error\n[2023-04-30 17:46:44,787] ERROR in app: Exception on /api/message_groups [GET]\nTraceback (most recent call last):\n    ...\n  File \"/backend-flask/app.py\", line 209, in data_message_groups\n    model = MessageGroup.run(cognito_user_id=cognito_user..."
url: "https://hashnode.com/posts/week-5-unboundlocalerror-local-variable-ddb-referenced-before-assignment-1/6461c671037ab39ae569992c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Week 5 - UnboundLocalError: local variable 'ddb' referenced before assignment](https://codeinajar.hashnode.dev/week-5-unboundlocalerror-local-variable-ddb-referenced-before-assignment-1?utm_source=hashnode&utm_medium=feed)

Error \[2023-04-30 17:46:44,787\] ERROR in app: Exception on /api/message\_groups \[GET\] Traceback (most recent call last): ... File "/backend-flask/app.py", line 209, in data\_message\_groups model = MessageGroup.run(cognito\_user\_id=cognito\_user...

May 15, 2023 · 1 min read · codeinajar.hashnode.dev  
Read the article

-   [#dynamodb](https://hashnode.com/tag/dynamodb)
-   [#flask](https://hashnode.com/tag/flask)
-   [#python3](https://hashnode.com/tag/python3)

## Written by

[Mariachi in a Jar](https://hashnode.com/@mariachiinajar)

@mariachiinajar · in a Jar in Seoul

  
[View profile](https://hashnode.com/@mariachiinajar)

Mariachi coding in a jar... on the cloud...!

Previously cross-cultural communicator, now a machine-human communicator. Currently working as a software QA. Building solid cloud skill sets to transition into the Cloud world.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
