From d8fdbb853c14df26be52d2cc101f76191d920e62 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Tue, 27 Nov 2018 21:35:06 +0200 Subject: [PATCH] Don't use before reference. --- aiogram/utils/callback_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/utils/callback_data.py b/aiogram/utils/callback_data.py index 23ff3dd0..bb7d6862 100644 --- a/aiogram/utils/callback_data.py +++ b/aiogram/utils/callback_data.py @@ -34,7 +34,7 @@ class CallbackData: elif len(sep) != 1: raise ValueError(f"Length of sep should be equals to 1") elif sep in prefix: - raise ValueError(f"Symbol '{self.sep}' can't be used in prefix") + raise ValueError(f"Symbol '{sep}' can't be used in prefix") elif not parts: raise TypeError('Parts is not passed!')