Skip to content

Commit 007d644

Browse files
committed
clean up
1 parent 85f9d2d commit 007d644

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NodeGraphQt/base/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ def set_context_menu_from_file(self, file_path, menu=None):
818818

819819
menu = menu or 'graph'
820820
if not os.path.isfile(file_path):
821-
return
821+
raise IOError('file doesn\'t exists: "{}"'.format(file_path))
822822

823823
with open(file_path) as f:
824824
data = json.load(f)

NodeGraphQt/custom_widgets/nodes_palette.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def __init__(self, parent=None):
140140
self.setViewMode(self.IconMode)
141141
self.setDragDropMode(self.DragOnly)
142142
self.setDragEnabled(True)
143-
self.setMinimumSize(450, 300)
143+
self.setMinimumSize(300, 100)
144144
self.setSpacing(4)
145145

146146
model = QtGui.QStandardItemModel()

0 commit comments

Comments
 (0)