Steffo99 / greed

Customizable, multilanguage Telegram shop bot with Payments support
GNU Affero General Public License v3.0
534 stars 262 forks source link

type object 'object' has no attribute 'name' Traceback #120

Closed tripoflgb closed 3 years ago

tripoflgb commented 3 years ago

Hello, please help me! I'm When I want to place an order, I get an error after I add the item to the cart and click "Checkout". Thank you.

Describe the bug

: type object 'object' has no attribute 'name' Traceback (most recent call last): File "/srv/greed/worker.py", line 204, in run self.user_menu() File "/srv/greed/worker.py", line 473, in __user_menu self.order_menu() File "/srv/greed/worker.py", line 676, in order_menu self.__order_transaction(order=order, value=-int(self.get_cart_value(cart) )) File "/srv/greed/worker.py", line 699, in __order_transaction payment_name=(self.order_info.name if self.order_info.name else None), AttributeError: type object 'object' has no attribute 'name'

To reproduce

Expected behavior

Screenshots

Additional context

valentino-sm commented 3 years ago

fixed. related to #119

Steffo99 commented 3 years ago

This is an issue about a development branch, it's not my responsibility to fix it, sorry :P