Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniele Paganelli committed May 6, 2016
1 parent 7bd6bc3 commit 3656024
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion misura/canon/option/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ def gete(self, key):
def sete(self, key, val):
if not val.has_key('priority') or val['priority']==-1:
priorities = [opt.get('priority',0) for opt in self.desc.itervalues()]
val['priority'] = max(priorities) + 1
if len(priorities):
val['priority'] = max(priorities) + 1
self.desc[key] = val

def add_option(self, *args, **kwargs):
Expand Down

0 comments on commit 3656024

Please sign in to comment.