Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str' #111

Open
VVD opened this issue Feb 23, 2025 · 0 comments
Open

TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str' #111

VVD opened this issue Feb 23, 2025 · 0 comments

Comments

@VVD
Copy link

VVD commented Feb 23, 2025

$ partedit
QSettings::value: Empty key passed
QSettings::value: Empty key passed
Please supply a name for the new attribute
Traceback (most recent call last):
  File "/usr/local/bin/partedit", line 1083, in dataDirtiedSlot
    title += '*'
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
Abort trap

title = self.data.filename

Patch:

--- src/tools/partedit.py.orig  2024-06-01 19:33:22 UTC
+++ src/tools/partedit.py
@@ -1080,7 +1080,7 @@ class PartEdit(QMainWindow):
     def dataDirtiedSlot(self, dirty):
         """ Sets the window title with or without "*" for dirty state """

-        title = self.data.filename
+        title = str(self.data.filename)
         if dirty:
             title += '*'
         self.setWindowTitle(title)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant